Class TxToken

java.lang.Object
io.jans.as.server.model.common.AbstractToken
io.jans.as.server.model.common.TxToken
All Implemented Interfaces:
io.jans.orm.model.base.Deletable, Serializable

public class TxToken extends AbstractToken
Author:
Yuriy Z
See Also:
  • Constructor Details

    • 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 Details

    • 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.