Class TxToken

    • Constructor Detail

      • TxToken

        public TxToken​(int lifeTime)

        Constructs an transaction token.

        When created, a token is valid for a given lifetime, and after this period of time, it will be marked as expired automatically by a background process.

        When required, the token can be marked as revoked.

        Parameters:
        lifeTime - The life time of the token.
      • TxToken

        public TxToken​(String tokenCode,
                       Date creationDate,
                       Date expirationDate)
    • Method Detail

      • getTokenType

        public io.jans.as.model.common.TokenType getTokenType()
        Returns the TokenType.
        Returns:
        The token type.
      • setTokenType

        public void setTokenType​(io.jans.as.model.common.TokenType tokenType)
        Sets the TokenType
        Parameters:
        tokenType - The token type.