gluu
|
公開メンバ関数 | |
RefreshToken (int lifeTime) | |
RefreshToken (String code, Date creationDate, Date expirationDate) | |
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) |
Authorization servers MAY issue refresh tokens to web application clients and native application clients.
Refresh tokens MUST be kept confidential in transit and storage, and shared only among the authorization server and the client to whom the refresh tokens were issued.
The authorization server MUST maintain the binding between a refresh token and the client to whom it was issued. The authorization server MUST verify the binding between the refresh token and client identity whenever the client identity can be authenticated. When client authentication is not possible, the authorization server SHOULD deploy other means to detect refresh token abuse.
For example, the authorization server could employ refresh token rotation in which a new refresh token is issued with every access token refresh response. The previous refresh token is invalidated but retained by the authorization server. If a refresh token is compromised and subsequently used by both the attacker and the legitimate client, one of them will present an invalidated refresh token which will inform the authorization server of the breach.
The authorization server MUST ensure that refresh tokens cannot be generated, modified, or guessed to produce valid refresh tokens by unauthorized parties.
|
inline |
|
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 |
|
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 |