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