@Immutable public class RefreshTokenSpec extends OptionalTokenSpec
| Modifier and Type | Field and Description |
|---|---|
static RefreshTokenSpec |
DEFAULT
Default refresh token specification (no issue).
|
| Constructor and Description |
|---|
RefreshTokenSpec()
Creates a new default refresh token specification (no issue).
|
RefreshTokenSpec(boolean issue,
long lifetime)
Creates a new refresh token specification.
|
| Modifier and Type | Method and Description |
|---|---|
static RefreshTokenSpec |
parse(net.minidev.json.JSONObject o)
Parses a refresh token specification from the specified JSON object.
|
issue, toJSONObjectgetAudience, getImpersonatedSubject, getLifetime, toStringpublic static final RefreshTokenSpec DEFAULT
public RefreshTokenSpec()
public RefreshTokenSpec(boolean issue, long lifetime)
issue - Controls the refresh token issue. If true
a refresh token must be issued (requires a
long-lived authorisation), false to prohibit
issue.lifetime - The refresh token lifetime, in seconds. Zero implies
permanent (no expiration) and negative not specified
(to let the Connect2id server apply the default
configured refresh token lifetime). Applies only if
a refresh token is issued.public static RefreshTokenSpec parse(net.minidev.json.JSONObject o) throws com.nimbusds.oauth2.sdk.ParseException
o - The JSON object. Must not be null.com.nimbusds.oauth2.sdk.ParseException - If parsing failed.Copyright © 2020 Connect2id Ltd.. All rights reserved.