@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,List<String>> params) |
Parses a client credentials grant from the specified request body
parameters.
|
Map<String,List<String>> |
toParameters() |
Returns the request body parameters for the authorisation grant.
|
getType
public static final GrantType GRANT_TYPE
public ClientCredentialsGrant()
client
authentication
of the TokenRequest
.public Map<String,List<String>> toParameters()
AuthorizationGrant
toParameters
in class AuthorizationGrant
public static ClientCredentialsGrant parse(Map<String,List<String>> params) throws ParseException
Example:
grant_type=client_credentials
params
- The parameters.ParseException
- If parsing failed.Copyright © 2019 Connect2id Ltd.. All rights reserved.