Interface TokenServiceLocal

    • Method Detail

      • cancelAll

        void cancelAll​(BasicUser user)
        Cancels all active / blocked tokens of the given user
      • expireTokens

        long expireTokens()
        Takes all the tokens and switches their statuses to EXPIRED or ACTIVATION_EXPIRED for those who meet the conditions of these statuses.
      • generateOnRegistrationTokens

        void generateOnRegistrationTokens​(BasicUser user)
        Generates the tokens that are configured to be generated upon registration
      • getKeyMask

        byte[] getKeyMask​(NFCToken nfcToken)
        Returns the key mask used to encrypt/decrypt the nfc token's keys (AMK and Operational)
      • getReceiveTokenTypes

        List<TokenType> getReceiveTokenTypes()
        Returns a list with the token types used for receive payments
      • hasReachedMaxTokensPerUser

        boolean hasReachedMaxTokensPerUser​(TokenPrincipalType type,
                                           BasicUser user,
                                           Token ignoredToken)
        Returns if the given user has reached the maximum possible assigned tokens
      • validateNFCChallenge

        void validateNFCChallenge​(String challenge)
        Validates the challenge received from a NFC tag/device ensuring it's the same as the previously generated by Cyclos.
        Parameters:
        challenge - the HEXA string send back by a NFC tag/device.