public static class AuthenticationTokenManager.Token extends Object
Modifier and Type | Field and Description |
---|---|
protected Long |
_autoRenewDuration
The token auto renewal duration, in seconds
|
protected String |
_comment
The token associated comment
|
protected String |
_context
The token context
|
protected Date |
_creationDate
The token creation date
|
protected Date |
_endDate
The token end date
|
protected Integer |
_id
The token identifier
|
protected Date |
_lastUpdateDate
The token last update date
|
protected Integer |
_nbUsesLeft
The token number of use left
|
protected String |
_type
The token type
|
Modifier | Constructor and Description |
---|---|
protected |
Token(Integer id,
String type,
String comment,
Date creationDate,
Date endDate,
Date lastUpdateDate,
Integer nbUsesLeft,
Long autoRenewDuration,
String context)
Creates a Token
|
Modifier and Type | Method and Description |
---|---|
Long |
getAutoRenewDuration()
Get the duration which the token should be automatically renewed on each use, in seconds
|
String |
getComment()
Get the associated creation comment
|
String |
getContext()
Get the context on which the token can be used
|
Date |
getCreationDate()
Get the creation date of the token
|
Date |
getEndDate()
Get the end date of the token validity
|
Integer |
getId()
Get the token identifier
|
Date |
getLastUpdateDate()
Get the last update date of the token
|
Integer |
getNbUsesLeft()
Get the number of uses allowed for this token
|
String |
getType()
Get the token type
|
protected Date _creationDate
protected Date _lastUpdateDate
protected Integer _nbUsesLeft
protected Long _autoRenewDuration
protected Token(Integer id, String type, String comment, Date creationDate, Date endDate, Date lastUpdateDate, Integer nbUsesLeft, Long autoRenewDuration, String context)
id
- The identifiertype
- The type of tokencomment
- The comment. Can be null.creationDate
- The creation date. Can be null.endDate
- The end date. Can be null.lastUpdateDate
- The last update date. Can be null.nbUsesLeft
- nb of uses left for this token (null for no limitation)autoRenewDuration
- duration that will be added (from "now") each time the token is updatedcontext
- context of the token (ressource id for example)public String getComment()
public Date getCreationDate()
public Date getEndDate()
public Date getLastUpdateDate()
public Long getAutoRenewDuration()
public String getContext()
public Integer getNbUsesLeft()