@Immutable public class ClientCredentialsGrant extends AuthorizationGrant
Related specifications:
| Modifier and Type | Field | Description |
|---|---|---|
static GrantType |
GRANT_TYPE |
The grant type.
|
| Constructor | Description |
|---|---|
ClientCredentialsGrant() |
Creates a new client credentials grant.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ClientCredentialsGrant |
parse(Map<String,String> params) |
Parses a client credentials grant from the specified parameters.
|
Map<String,String> |
toParameters() |
Return the parameters for the authorisation grant.
|
getTypepublic static final GrantType GRANT_TYPE
public ClientCredentialsGrant()
client
authentication of the TokenRequest.public Map<String,String> toParameters()
AuthorizationGranttoParameters in class AuthorizationGrantpublic static ClientCredentialsGrant parse(Map<String,String> params) throws ParseException
Example:
grant_type=client_credentials
params - The parameters.ParseException - If parsing failed.Copyright © 2018 Connect2id Ltd.. All rights reserved.