public interface TokenService extends CRUDService<TokenDTO,TokenData,TokenDataParams>
| Modifier and Type | Method and Description |
|---|---|
ActivateNFCDeviceDTO |
activateNFCDevice(NFCDeviceActionDTO dto)
Activates the specified NFC device for the logged user (e.g.: to make payments).
|
ActivateNFCTagDTO |
activateNFCTag(NFCTagActionDTO dto)
Generates personalized data to be stored in a NFC tag for the specified user.
|
void |
activatePending(java.lang.Long tokenId)
Activates the given token.
|
void |
assign(TokenActionDTO dto)
Assigns and activates an unassigned token with the given type and value for the logged user.
|
void |
block(java.lang.Long tokenId)
Blocks the given token
|
void |
cancel(java.lang.Long tokenId)
Cancels the given token
|
void |
cancelNFCDevice(TokenActionDTO dto)
Cancels the specified NFC device for the logged user.
|
void |
cancelNFCTag(NFCTagActionDTO dto)
Cancels the a NFC tag.
|
ActivateNFCDeviceData |
getActivateNFCDeviceData()
Returns the data needed to allow the personalization of a NFC device for the logged user.
|
ActivateNFCTagData |
getActivateNFCTagData(UserLocatorVO locator)
Returns the data needed to allow the personalization of a NFC tag for the specified user locator.
|
TokensListData |
getListData(TokenPrincipalTypeVO tokenType,
UserLocatorVO user)
Returns data for listing tokens of a given type and user
|
TokenSearchData |
getSearchData(TokenPrincipalTypeVO tokenType)
Returns data for searching tokens
|
ExternalNFCTagAuthenticateData |
requestForExternalAuthenticate(ExternalNFCTagAuthenticateDTO dto)
This method must be invoked to start a mutual authentication process between the server and the NFC tag (e.g: a card) to prove that both share
the same secret key.
The authentication process is carried on in the following order: Validate the identity of the server: external authenticate Validate the identity of the card: internal authenticate |
void |
requestNewOTPForActivateNFCTag(UserLocatorVO locator,
TokenPrincipalTypeVO tokenType,
OTPSendMedium medium)
Generates a new OTP (removing any previous password, if any) and sends it to the user by the specified medium using the confirmation password
type for the
BuiltInChannel.POS channel for the specified user.It has the same security controls as for activateNFCTag(NFCTagActionDTO), that is the logged user must be allowed to
personalize a NFC Tag for the specified user. |
Page<TokenVO> |
search(TokenQuery query)
Searches for tokens
|
void |
unblock(java.lang.Long tokenId)
Unblocks the given token
|
getData, getDataForNew, load, remove, removeAll, saveActivateNFCDeviceDTO activateNFCDevice(NFCDeviceActionDTO dto) throws FrameworkException
FrameworkExceptionActivateNFCTagDTO activateNFCTag(NFCTagActionDTO dto) throws FrameworkException
FrameworkExceptionvoid activatePending(java.lang.Long tokenId)
throws FrameworkException
FrameworkExceptionvoid assign(TokenActionDTO dto) throws FrameworkException, MaxTokenActivationAttemptsException, InvalidTokenException
void block(java.lang.Long tokenId)
throws FrameworkException
FrameworkExceptionvoid cancel(java.lang.Long tokenId)
throws FrameworkException
FrameworkExceptionvoid cancelNFCDevice(TokenActionDTO dto) throws FrameworkException
FrameworkExceptionvoid cancelNFCTag(NFCTagActionDTO dto) throws FrameworkException
FrameworkExceptionActivateNFCDeviceData getActivateNFCDeviceData() throws FrameworkException
FrameworkExceptionActivateNFCTagData getActivateNFCTagData(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionTokensListData getListData(TokenPrincipalTypeVO tokenType, UserLocatorVO user) throws FrameworkException
FrameworkExceptionTokenSearchData getSearchData(TokenPrincipalTypeVO tokenType) throws FrameworkException
FrameworkExceptionExternalNFCTagAuthenticateData requestForExternalAuthenticate(ExternalNFCTagAuthenticateDTO dto) throws FrameworkException
dto - contains the token type id, the token value and an encrypted challenge generated by the tag encoded as base64.FrameworkExceptionvoid requestNewOTPForActivateNFCTag(UserLocatorVO locator, TokenPrincipalTypeVO tokenType, OTPSendMedium medium) throws FrameworkException, SmsSendingException
BuiltInChannel.POS channel for the specified user.activateNFCTag(NFCTagActionDTO), that is the logged user must be allowed to
personalize a NFC Tag for the specified user. - medium - the medium used to send the OTP.SmsSendingException - only if medium is OTPSendMedium.BY_SMS and the OTP could not be sent to any enabled for sms phone.FrameworkExceptionPage<TokenVO> search(TokenQuery query) throws FrameworkException, QueryParseException
void unblock(java.lang.Long tokenId)
throws FrameworkException
FrameworkException