Package io.jans.as.server.model.common
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
- Author:
- Yuriy Z
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.jans.as.model.common.TokenType
Returns theTokenType
.void
setTokenType
(io.jans.as.model.common.TokenType tokenType) Sets theTokenType
Methods inherited from class io.jans.as.server.model.common.AbstractToken
checkExpired, checkExpired, getCode, getCreationDate, getDpop, getExpirationDate, getExpiresIn, getHash, getReferenceId, getSessionDn, getStatusListIndex, getTtl, getX5ts256, isDeletable, isExpired, isRevoked, isValid, resetTtlFromExpirationDate, setCode, setCreationDate, setDeletable, setDpop, setExpirationDate, setExpired, setReferenceId, setRevoked, setSessionDn, setStatusListIndex, setX5ts256
-
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
-
-
Method Details
-
getTokenType
public io.jans.as.model.common.TokenType getTokenType()Returns theTokenType
.- Returns:
- The token type.
-
setTokenType
public void setTokenType(io.jans.as.model.common.TokenType tokenType) Sets theTokenType
- Parameters:
tokenType
- The token type.
-