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 |
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.FrameworkExceptionPage<TokenVO> search(TokenQuery query) throws FrameworkException, QueryParseException
void unblock(java.lang.Long tokenId)
throws FrameworkException
FrameworkException