@Immutable public class ClientCredentialsGrant extends AuthorizationGrant
Related specifications:
| Modifier and Type | Field and Description |
|---|---|
static GrantType |
GRANT_TYPE
The associated grant type.
|
| Constructor and Description |
|---|
ClientCredentialsGrant(Scope scope)
Creates a new client credentials grant.
|
| Modifier and Type | Method and Description |
|---|---|
Scope |
getScope()
Gets the requested scope.
|
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(Scope scope)
scope - The requested scope, null if not specified.public Scope getScope()
null if not specified.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 © 2013 NimbusDS. All Rights Reserved.