gluu
|
公開メンバ関数 | |
AbstractToken (int lifeTime) | |
void | checkExpired () |
void | checkExpired (Date now) |
boolean | isValid () |
String | getCode () |
void | setCode (String code) |
Date | getCreationDate () |
void | setCreationDate (Date creationDate) |
Date | getExpirationDate () |
void | setExpirationDate (Date expirationDate) |
boolean | isRevoked () |
synchronized void | setRevoked (boolean revoked) |
boolean | isExpired () |
synchronized void | setExpired (boolean expired) |
String | getAuthMode () |
void | setAuthMode (String authMode) |
String | getSessionDn () |
void | setSessionDn (String sessionDn) |
int | getExpiresIn () |
String | getHash (SignatureAlgorithm signatureAlgorithm) |
限定公開メンバ関数 | |
AbstractToken (String code, Date creationDate, Date expirationDate) | |
非公開変数類 | |
String | code |
Date | creationDate |
Date | expirationDate |
boolean | revoked |
boolean | expired |
String | authMode |
String | sessionDn |
Base class for the access token, refresh token and authorization code.
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.
|
inline |
Creates and initializes the values of an abstract token.
lifeTime | The life time of the token. |
|
inlineprotected |
|
inline |
Checks whether the token has expired and if true, marks itself as expired.
|
inline |
Checks whether the token has expired and if true, marks itself as expired.
|
inline |
Returns the authentication mode.
|
inline |
Returns the token code.
|
inline |
Returns the creation date of the token.
|
inline |
Returns the expiration date of the token.
|
inline |
Returns the lifetime in seconds of the token.
|
inline |
|
inline |
|
inline |
Return true
if the token has expired.
true
if the token has expired.
|
inline |
Returns true
if the token has been revoked.
true
if the token has been revoked.
|
inline |
Checks whether a token is valid, it is valid if it is not revoked and not expired.
true
if the token is valid.
|
inline |
Sets the authentication mode.
authMode | The authentication mode. |
|
inline |
Sets the token code.
code | The code of the token. |
|
inline |
Sets the creation date of the token.
creationDate | The creation date. |
|
inline |
Sets the expiration date of the token.
expirationDate | The expiration date. |
|
inline |
Sets the value of the expired flag to indicate whether the token has expired.
expired | Expire or not. |
|
inline |
Sets the value of the revoked flag to indicate whether the token has been revoked.
revoked | Revoke or not. |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |