public interface TokenService extends CRUDService<TokenDTO,TokenData,TokenDataParams>
| Modifier and Type | Method and Description |
|---|---|
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 |
cancelNFCToken(TokenActionDTO dto)
Cancels the given NFC token.
|
SerializableInputStream |
exportToCSV(TokenQuery query)
Returns a CSV version of all returned tokens
|
InitializeNFCTagData |
getInitializeNFCTagData()
Returns data with the token types available to initialize a blank NFC tag.
The available tokens to personalize the tag are returned too to allow initialization and personalization at the same time. |
TokensListData |
getListData(TokenPrincipalTypeVO tokenType,
UserLocatorVO user)
Returns data for listing tokens of a given type and user
|
PersonalizeNFCTagData |
getPersonalizeNFCTagData(TokenPrincipalTypeVO tokenType,
UserLocatorVO locator)
Returns data needed to personalize a NFC tag for the specified type and user.
The PersonalizeNFCTagData.CONFIRMATION_PASSWORD_INPUT will be null if the logged user manages the given
user. |
TokenSearchData |
getSearchData(TokenPrincipalTypeVO tokenType)
Returns data for searching tokens
|
InitializeNFCTagResult |
initializeNFCTag(NFCTagInitializeDTO dto)
Initializes and optionally personalize a NFC tag with the given data.
|
void |
personalizeNFCTag(NFCTagPersonalizeDTO dto)
Personalizes a NFC tag for the given user.
|
ExternalNFCTagAuthenticateData |
requestForExternalAuthenticate(ExternalNFCTagAuthenticateDTO dto)
This method must be invoked to start a mutual authentication process between the server and the NFC tag (e.g.
|
void |
requestNewOTPForPersonalizeNFCTag(UserLocatorVO locator,
TokenPrincipalTypeVO tokenTypeVO,
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 set for the
BuiltInChannel.POS channel for the specified user.It has the same security controls as for personalizeNFCTag(NFCTagPersonalizeDTO), 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, savevoid 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 cancelNFCToken(TokenActionDTO dto) throws FrameworkException
TokenType.NFC_TAG.TokenType.NFC_DEVICE only the logged user can cancel its own token.FrameworkExceptionSerializableInputStream exportToCSV(TokenQuery query) throws FrameworkException
FrameworkExceptionInitializeNFCTagData getInitializeNFCTagData() throws FrameworkException
FrameworkExceptioninitializeNFCTag(NFCTagInitializeDTO)TokensListData getListData(TokenPrincipalTypeVO tokenType, UserLocatorVO user) throws FrameworkException
FrameworkExceptionPersonalizeNFCTagData getPersonalizeNFCTagData(TokenPrincipalTypeVO tokenType, UserLocatorVO locator) throws FrameworkException
PersonalizeNFCTagData.CONFIRMATION_PASSWORD_INPUT will be null if the logged user manages the given
user. The PersonalizeNFCTagData.TOKEN_TYPE is the token principal type the tag was initialized for.FrameworkExceptionTokenSearchData getSearchData(TokenPrincipalTypeVO tokenType) throws FrameworkException
FrameworkExceptionInitializeNFCTagResult initializeNFCTag(NFCTagInitializeDTO dto) throws FrameworkException, TokenAlreadyInUseException
NFCTagInitializeDTO.getUser() is not null then the token will be personalized for that user too.
Returns the private keys (PICC Master Key (i.e. PMK), Application Master Key (i.e. AMK) and Operational key) to
be stored into the tag.void personalizeNFCTag(NFCTagPersonalizeDTO dto) throws FrameworkException, TokenAlreadyInUseException
requestForExternalAuthenticate(ExternalNFCTagAuthenticateDTO))NFCTagPersonalizeDTO.CYCLOS_CHALLENGE is the encrypted (hexadecimal string) challenge
generated by the server (returned in the previous external authenticate) used to ensure the tag presence
(internal authenticate)ExternalNFCTagAuthenticateData requestForExternalAuthenticate(ExternalNFCTagAuthenticateDTO dto) throws FrameworkException
dto - contains the token type id (required), the token value (optional) and an encrypted challenge
(required) generated by the tag in hexadecimal notation.
If the token value is null then means the authentication process will be using the PICC Master Key (PMK).ExternalNFCTagAuthenticateData.CYCLOS_CHALLENGE: encrypted data (hexadecimal string) containing both:
a new challenge generated by the server (used to validate the identity
of the NFC tag, internal authenticate) and the original challenge generated by the tag processed according to the
tag's
authentication process. The (processed) original tag challenge will be used by the NFC tag to complete the server
identity validation (external authenticate).ExternalNFCTagAuthenticateData.SESSION_KEY: A session key needed by the tag to allow send enciphered
data to be written into the NFC tagFrameworkExceptionvoid requestNewOTPForPersonalizeNFCTag(UserLocatorVO locator, TokenPrincipalTypeVO tokenTypeVO, OTPSendMedium medium) throws FrameworkException, SmsSendingException
BuiltInChannel.POS channel for the specified user.personalizeNFCTag(NFCTagPersonalizeDTO), that is
the logged user must be allowed to personalize a NFC Tag for the specified user.tokenTypeVO - the principal type used to personalize the cardmedium - 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