Constructor and Description |
---|
AuthorizationCode(org.forgerock.json.JsonValue token)
Constructs a new AuthorizationCode backed with the data in the specified JsonValue.
|
AuthorizationCode(String code,
String resourceOwnerId,
String clientId,
String redirectUri,
Set<String> scope,
String claims,
long expiryTime,
String nonce,
String realm,
String authModules,
String acr,
String ssoTokenId,
String codeChallenge,
String codeChallengeMethod,
String authGrantId,
String auditId)
Constructs a new AuthorizationCode.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuditTrackingId()
Get the audit tracking ID for this token.
|
AuditConstants.TrackingIdKey |
getAuditTrackingIdKey()
Get the audit tracking ID key for this token.
|
String |
getAuthenticationContextClassReference()
Get the Authentication Context Class Reference (acr).
|
String |
getAuthGrantId()
Gets the authorization grant id
|
String |
getAuthModules()
Get the auth modules string.
|
String |
getClaims()
Returns the requested claims.
|
String |
getClientId()
Gets the client's id.
|
String |
getCodeChallenge()
Get the code challenge
|
String |
getCodeChallengeMethod()
Get the code challenge method
|
long |
getExpiryTime()
Gets the expiry time.
|
String |
getNonce()
Gets the nonce.
|
String |
getRealm()
Gets the realm.
|
String |
getRedirectUri()
Gets the redirect uri.
|
String |
getResourceOwnerId()
Gets the resource owner's id.
|
Set<String> |
getScope()
Gets the scope.
|
String |
getSessionId()
Gets the session id of the authenticating session.
|
String |
getTokenId()
Gets the token's identifier.
|
Map<String,Object> |
getTokenInfo()
Gets the token's information.
|
String |
getTokenName()
Gets the token's name.
|
String |
getTokenType()
Gets the token type.
|
boolean |
isExpired()
Determines if the Authorization Code is expired.
|
boolean |
isIssued()
Determines whether the authorization code has been issued.
|
void |
setIssued()
Sets the authorization code as issued.
|
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 AuthorizationCode(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 AuthorizationCode(String code, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, String claims, long expiryTime, String nonce, String realm, String authModules, String acr, String ssoTokenId, String codeChallenge, String codeChallengeMethod, String authGrantId, String auditId)
code
- The authorization code.resourceOwnerId
- The resource owner's id.clientId
- The client's id.redirectUri
- The redirect uri.scope
- The scopes.expiryTime
- The expiry time.nonce
- The nonce.public final boolean isExpired()
true
if current time is greater than the expiry time.public long getExpiryTime()
public String getTokenId()
getTokenId
in interface Token
public String getTokenType()
public String getTokenName()
getTokenName
in interface Token
public boolean isIssued()
true
if the authorization code has been issued.public String getRedirectUri()
public String getClientId()
public String getResourceOwnerId()
public String getAuthModules()
public String getAuthenticationContextClassReference()
public String getNonce()
public String getSessionId()
public void setIssued()
public Map<String,Object> getTokenInfo()
getTokenInfo
in interface Token
Map
of the token's information.public String getCodeChallenge()
public String getCodeChallengeMethod()
public String getAuthGrantId()
public org.forgerock.json.JsonValue toJsonValue()
JsonValue
representation of the token.toJsonValue
in interface Token
JsonValue
representation of the token.public String getAuditTrackingId()
Token
getAuditTrackingId
in interface Token
public AuditConstants.TrackingIdKey getAuditTrackingIdKey()
Token
getAuditTrackingIdKey
in interface Token
public String getClaims()
public String getRealm()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.