Constructor and Description |
---|
DeviceCode(org.forgerock.json.JsonValue token)
Constructs a new OpenAMAuthorizationCode backed with the data in the specified JsonValue.
|
DeviceCode(String deviceCode,
String userCode,
String resourceOwnerId,
String clientId,
String nonce,
String responseType,
String state,
String acrValues,
String prompt,
String uiLocales,
String loginHint,
Integer maxAge,
String claims,
long expiryTime,
Set<String> scope,
String realm,
String codeChallenge,
String codeChallengeMethod,
String auditTrackingId) |
Modifier and Type | Method and Description |
---|---|
String |
getAcrValues()
Gets the ACR Values parameter.
|
String |
getAuditTrackingId()
Get the audit tracking ID for this token.
|
AuditConstants.TrackingIdKey |
getAuditTrackingIdKey()
Get the audit tracking ID key for this token.
|
String |
getClaims()
Returns the requested claims.
|
String |
getClientId()
Gets the Client ID parameter.
|
String |
getCodeChallenge()
Gets the Code Challenge parameter.
|
String |
getCodeChallengeMethod()
Gets the Code Challenge Method parameter.
|
String |
getDeviceCode()
Gets the Device Code - this is also the
Token ID . |
long |
getExpiryTime()
Gets the expiry time of this device code.
|
long |
getLastPollTime()
Gets the time that this device code was last polled by the device.
|
String |
getLoginHint()
Gets the login hint parameter.
|
Integer |
getMaxAge()
Gets the max age parameter.
|
String |
getNonce()
Gets the Nonce parameter.
|
String |
getPrompt()
Gets the prompt parameter.
|
String |
getRealm()
Gets the realm.
|
String |
getResourceOwnerId()
Gets the Resource Owner ID parameter.
|
String |
getResponseType()
Gets the response type parameter.
|
Set<String> |
getScope()
Gets the set of scopes requested.
|
String |
getState()
Gets the state parameter.
|
protected String |
getStringProperty(String key) |
String |
getTokenId()
Gets the token's identifier.
|
Map<String,Object> |
getTokenInfo()
Gets the token's information.
|
String |
getTokenName()
Gets the token's name.
|
String |
getUiLocales()
Gets the UI Locales parameter.
|
String |
getUserCode()
Gets the User Code.
|
boolean |
isAuthorized() |
boolean |
isIssued()
Whether this device code has been issued.
|
void |
poll()
Updates the last poll time of this device code.
|
void |
setAuthorized(boolean authorized) |
void |
setResourceOwnerId(String resourceOwnerId)
Sets the Resource Owner ID parameter.
|
org.forgerock.json.JsonValue |
toJsonValue()
Gets the
JsonValue representation of the token. |
Map<String,Object> |
toMap()
Converts the token into a
Map of its key data. |
add, add, add, add, addPermissive, array, as, asBigDecimal, asBoolean, asCollection, asCollection, asDouble, asEnum, asInteger, asList, asList, asLong, asMap, asMap, asMapOfList, asNumber, asSet, asSet, asString, asURI, clear, clone, contains, copy, defaultTo, diff, expect, field, fieldIfNotNull, get, get, get, getObject, getPointer, isBoolean, isCollection, isDefined, isEqualTo, isList, isMap, isNotNull, isNull, isNumber, isSet, isString, iterator, json, keys, object, object, patch, put, put, put, putPermissive, remove, remove, remove, required, set, setObject, size, toIndex, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DeviceCode(org.forgerock.json.JsonValue token) throws InvalidGrantException
token
- The JsonValue of the token.InvalidGrantException
- If the given token is not an Authorization Code token.public DeviceCode(String deviceCode, String userCode, String resourceOwnerId, String clientId, String nonce, String responseType, String state, String acrValues, String prompt, String uiLocales, String loginHint, Integer maxAge, String claims, long expiryTime, Set<String> scope, String realm, String codeChallenge, String codeChallengeMethod, String auditTrackingId)
public String getDeviceCode()
Token ID
.public String getUserCode()
public String getResourceOwnerId()
public void setResourceOwnerId(String resourceOwnerId)
resourceOwnerId
- The Resource Owner ID.public String getClientId()
public String getNonce()
public String getAcrValues()
public String getCodeChallengeMethod()
public String getCodeChallenge()
public Integer getMaxAge()
public String getLoginHint()
public String getUiLocales()
public String getPrompt()
public String getState()
public String getResponseType()
public String getClaims()
public void poll()
public long getLastPollTime()
public String getRealm()
public String getTokenId()
Token
getTokenId
in interface Token
public String getAuditTrackingId()
Token
getAuditTrackingId
in interface Token
public AuditConstants.TrackingIdKey getAuditTrackingIdKey()
Token
getAuditTrackingIdKey
in interface Token
public String getTokenName()
Token
getTokenName
in interface Token
public long getExpiryTime()
public boolean isIssued()
public Map<String,Object> toMap() throws ServerException
Token
Map
of its key data.toMap
in interface Token
Map
of the token's key data.ServerException
- If any internal server error occurs.public Map<String,Object> getTokenInfo()
Token
getTokenInfo
in interface Token
Map
of the token's information.public void setAuthorized(boolean authorized)
public boolean isAuthorized()
public org.forgerock.json.JsonValue toJsonValue()
JsonValue
representation of the token.toJsonValue
in interface Token
JsonValue
representation of the token.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.