public class AccessTokenIssuer extends Object
#attrs = new java.util.HashMap(), attrs.put("uid",#this.get("username")), attrs.put("email", #this.get("email")), #val = @com.pingidentity.sdk.oauth20.AccessTokenIssuer@issueToken(#attrs, null, null)The above will issue a new access token and return the opaque token value as the result of evaluating the expression. That value will be assigned as the attribute value for whatever field the expression is mapped into. In this example, the access token will have two attributes "uid" and "email". The values of those attributes are the values of the "username" and "email" attributes, respectively, from the attributes input into the mapping. The scope will be empty (default scope) and the client will be null.
Constructor and Description |
---|
AccessTokenIssuer() |
Modifier and Type | Method and Description |
---|---|
static IssuedAccessToken |
issue(Map<String,Object> attributes,
String scopeString,
String clientId)
Issues an access token.
|
static IssuedAccessToken |
issue(Map<String,Object> attributes,
String scopeString,
String clientId,
String accessTokenManagerId)
Issues an access token.
|
static String |
issueToken(Map<String,Object> attributes,
String scopeString,
String clientId)
Issues an access token and returns the String representation of the issued token.
|
static String |
issueToken(Map<String,Object> attributes,
String scopeString,
String clientId,
String accessTokenManagerId)
Issues an access token and returns the String representation of the issued token.
|
public static String issueToken(Map<String,Object> attributes, String scopeString, String clientId)
attributes
- The attributes associated with this access token.scopeString
- The scopes that will be assigned to the issued access token.clientId
- The client ID of the issued access token.public static String issueToken(Map<String,Object> attributes, String scopeString, String clientId, String accessTokenManagerId)
attributes
- The attributes associated with this access token.scopeString
- The scopes that will be assigned to the issued access token.clientId
- The client ID of the issued access token.accessTokenManagerId
- The ID of the access token manager to use in issuing the access token.public static IssuedAccessToken issue(Map<String,Object> attributes, String scopeString, String clientId)
attributes
- The attributes associated with this access token.scopeString
- The scopes that will be assigned to the issued access token.clientId
- The client ID of the issued access token.public static IssuedAccessToken issue(Map<String,Object> attributes, String scopeString, String clientId, String accessTokenManagerId)
attributes
- The attributes associated with this access token.scopeString
- The scopes that will be assigned to the issued access token.clientId
- The client ID of the issued access token.accessTokenManagerId
- The ID of the access token manager to use in issuing the access token.Copyright 2019 Ping Identity Corp. All rights reserved.