public interface XSTokenRequest
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_CLIENT_CREDENTIALS_TOKEN |
static int |
TYPE_USER_TOKEN |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAdditionalAuthorizationAttributes()
Returns the list of requested additional authorization attributes, or null if
no additional authorization attributes have been set.
|
String |
getClientId()
Returns the OAuth 2.0 client ID, if set, that will be used to authenticate
the client
|
String |
getClientSecret()
Returns the OAuth 2.0 client secret, if set, that will be used to
authenticate the client
|
URI |
getTokenEndpoint()
Returns the token exchange endpoint URI.
|
int |
getType()
Returns the type of the requested token
|
boolean |
isValid()
Returns true if this object contains enough information to retrieve a token
|
XSTokenRequest |
setAdditionalAuthorizationAttributes(Map<String,String> additionalAuthorizationAttributes)
Sets the requested additional authorization attributes list for this token
request.
|
XSTokenRequest |
setClientId(String clientId)
Sets the OAuth 2.0 client ID to be used for authentication during the token
request
|
XSTokenRequest |
setClientSecret(String clientSecret)
Sets the OAuth 2.0 client secret to be used for authentication during the
token request
|
XSTokenRequest |
setTokenEndpoint(URI tokenEndpoint)
Set the token endpoint URI
|
XSTokenRequest |
setType(int type)
Set the requested token type
|
static final int TYPE_USER_TOKEN
static final int TYPE_CLIENT_CREDENTIALS_TOKEN
boolean isValid()
String getClientId()
null if not set.XSTokenRequest setClientId(String clientId)
clientId - a string, no more than 255 characters identifying a valid client
on the UAAString getClientSecret()
null if not set.XSTokenRequest setClientSecret(String clientSecret)
clientSecret - a string representing the password for a valid client on the UAAMap<String,String> getAdditionalAuthorizationAttributes()
XSTokenRequest setAdditionalAuthorizationAttributes(Map<String,String> additionalAuthorizationAttributes)
additionalAuthorizationAttributes - a set of strings representing requested additional authorization
attributesint getType()
XSTokenRequest setType(int type)
type - type of token request: TYPE_USER_TOKEN or
TYPE_CLIENT_CREDENTIAL_TOKENURI getTokenEndpoint()
https://<server>:<port>/oauth/token.XSTokenRequest setTokenEndpoint(URI tokenEndpoint)
tokenEndpoint - url of token endpointCopyright © 2023. All rights reserved.