@Immutable
public final class LoginSessionToken
extends com.nimbusds.oauth2.sdk.token.Token
| Constructor and Description |
|---|
LoginSessionToken()
Creates a new refresh token with a randomly generated 256-bit
(32-byte) value, Base64URL-encoded.
|
LoginSessionToken(int byteLength)
Creates a new refresh token with a randomly generated value of the
specified length, Base64URL-encoded.
|
LoginSessionToken(String value)
Creates a new refresh token with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Set<String> |
getParameterNames() |
static LoginSessionToken |
parse(net.minidev.json.JSONObject jsonObject)
Parses a refresh token from a JSON object access token response.
|
net.minidev.json.JSONObject |
toJSONObject() |
public LoginSessionToken()
public LoginSessionToken(int byteLength)
byteLength - The byte length of the value to generate. Must be
greater than one.public LoginSessionToken(String value)
value - The refresh token value. Must not be null or
empty string.public Set<String> getParameterNames()
getParameterNames in class com.nimbusds.oauth2.sdk.token.Tokenpublic net.minidev.json.JSONObject toJSONObject()
toJSONObject in class com.nimbusds.oauth2.sdk.token.Tokenpublic static LoginSessionToken parse(net.minidev.json.JSONObject jsonObject) throws com.nimbusds.oauth2.sdk.ParseException
jsonObject - The JSON object to parse. Must not be
null.null if not found.com.nimbusds.oauth2.sdk.ParseException - If the JSON object couldn't be parsed to a
refresh token.public boolean equals(Object object)
equals in class com.nimbusds.oauth2.sdk.id.IdentifierCopyright © 2015–2017. All rights reserved.