Class OAuth2TokenExchangeContext
- java.lang.Object
-
- org.forgerock.services.context.AbstractContext
-
- org.forgerock.openig.filter.oauth2.OAuth2TokenExchangeContext
-
- All Implemented Interfaces:
Context
public class OAuth2TokenExchangeContext extends AbstractContext
Context
supporting OAuth2 token exchange scenarios, this manages the resulting exchange token.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
TheOAuth2TokenExchangeContext
's name.-
Fields inherited from class org.forgerock.services.context.AbstractContext
data
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIssuedToken()
Returns the exchange token issued by the authorization service.String
getIssuedTokenType()
Returns the issued exchange token type URN.JsonValue
getRawInfo()
Returns the raw exchange token info as issued by the authorization server.Set<String>
getScopes()
Returns the set of scopes applicable to the exchange token.-
Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
-
-
-
Field Detail
-
NAME
public static final String NAME
TheOAuth2TokenExchangeContext
's name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getIssuedToken
public String getIssuedToken()
Returns the exchange token issued by the authorization service.- Returns:
- The issued exchange token.
-
getIssuedTokenType
public String getIssuedTokenType()
Returns the issued exchange token type URN.- Returns:
- The issued exchange token type URN.
-
getScopes
public Set<String> getScopes()
Returns the set of scopes applicable to the exchange token.- Returns:
- The set of available scopes.
-
getRawInfo
public JsonValue getRawInfo()
Returns the raw exchange token info as issued by the authorization server.- Returns:
- The exchange token raw info.
-
-