gluu
|
公開メンバ関数 | |
AccessToken (int lifeTime) | |
AccessToken (String tokenCode, Date creationDate, Date expirationDate) | |
TokenType | getTokenType () |
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) |
非公開変数類 | |
TokenType | tokenType |
Access token (as well as any access token type-specific attributes) MUST be kept confidential in transit and storage, and only shared among the authorization server, the resource servers the access token is valid for, and the client to whom the access token is issued.
When using the implicit grant type, the access token is transmitted in the URI fragment, which can expose it to unauthorized parties.
The authorization server MUST ensure that access tokens cannot be generated, modified, or guessed to produce valid access tokens by unauthorized parties.
The client SHOULD request access tokens with the minimal scope and lifetime necessary. The authorization server SHOULD take the client identity into account when choosing how to honor the requested scope and lifetime, and MAY issue an access token with a less rights than requested.
|
inline |
Constructs an access 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.
lifeTime | The life time of the token. |
|
inline |
|
inlineinherited |
Checks whether the token has expired and if true, marks itself as expired.
|
inlineinherited |
Checks whether the token has expired and if true, marks itself as expired.
|
inlineinherited |
Returns the authentication mode.
|
inlineinherited |
Returns the token code.
|
inlineinherited |
Returns the creation date of the token.
|
inlineinherited |
Returns the expiration date of the token.
|
inlineinherited |
Returns the lifetime in seconds of the token.
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
Return true
if the token has expired.
true
if the token has expired.
|
inlineinherited |
Returns true
if the token has been revoked.
true
if the token has been revoked.
|
inlineinherited |
Checks whether a token is valid, it is valid if it is not revoked and not expired.
true
if the token is valid.
|
inlineinherited |
Sets the authentication mode.
authMode | The authentication mode. |
|
inlineinherited |
Sets the token code.
code | The code of the token. |
|
inlineinherited |
Sets the creation date of the token.
creationDate | The creation date. |
|
inlineinherited |
Sets the expiration date of the token.
expirationDate | The expiration date. |
|
inlineinherited |
Sets the value of the expired flag to indicate whether the token has expired.
expired | Expire or not. |
|
inlineinherited |
Sets the value of the revoked flag to indicate whether the token has been revoked.
revoked | Revoke or not. |
|
inlineinherited |
|
private |