public abstract class AuthorizationGrant extends Object
Supported authorisation grant types:
Authorisation code
Resource owner password credentials
Client credentials
Refresh token
GrantType.JWT_BEARER
GrantType.SAML2_BEARER
Related specifications:
| Modifier | Constructor and Description |
|---|---|
protected |
AuthorizationGrant(GrantType type)
Creates a new authorisation grant.
|
| Modifier and Type | Method and Description |
|---|---|
GrantType |
getType()
Gets the authorisation grant type.
|
static AuthorizationGrant |
parse(Map<String,String> params)
Parses an authorisation grant from the specified parameters.
|
abstract Map<String,String> |
toParameters()
Return the parameters for the authorisation grant.
|
protected AuthorizationGrant(GrantType type)
type - The authorisation grant type. Must not be
null.public GrantType getType()
public abstract Map<String,String> toParameters()
public static AuthorizationGrant parse(Map<String,String> params) throws ParseException
params - The parameters. Must not be null.ParseException - If parsing failed or the grant type is not
supported.Copyright © 2017 Connect2id Ltd.. All rights reserved.