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 requested.
|
String |
getClientId()
Returns the client ID, if set, that will be used to authenticate the client
|
String |
getClientSecret()
Returns the client secret, if set, that will be used to authenticate the
client
|
URI |
getTokenEndpoint() |
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 client ID to be used for authentication during the token request
|
XSTokenRequest |
setClientSecret(String clientSecret)
Sets the 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()
XSTokenRequest setClientId(String clientId)
clientId - a string, no more than 255 characters identifying a valid client
on the UAAString getClientSecret()
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()
XSTokenRequest setTokenEndpoint(URI tokenEndpoint)
tokenEndpoint - url of token endpointCopyright © 2019. All rights reserved.