AssertionGrant
, AuthorizationCodeGrant
, ClientCredentialsGrant
, DeviceCodeGrant
, RefreshTokenGrant
, ResourceOwnerPasswordCredentialsGrant
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
GrantType.DEVICE_CODE
Related specifications:
Modifier | Constructor | Description |
---|---|---|
protected |
AuthorizationGrant(GrantType type) |
Creates a new authorisation grant.
|
Modifier and Type | Method | Description |
---|---|---|
GrantType |
getType() |
Gets the authorisation grant type.
|
static AuthorizationGrant |
parse(Map<String,List<String>> params) |
Parses an authorisation grant from the specified request body
parameters.
|
abstract Map<String,List<String>> |
toParameters() |
Returns the request body 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,List<String>> toParameters()
public static AuthorizationGrant parse(Map<String,List<String>> params) throws ParseException
params
- The request body parameters. Must not be null
.ParseException
- If parsing failed or the grant type is not
supported.Copyright © 2019 Connect2id Ltd.. All rights reserved.