@ThreadSafe public interface ClientCredentialsGrantHandler extends GrantHandler
authorisation
on
success.
Implementations must be thread-safe.
Related specifications:
Modifier and Type | Field and Description |
---|---|
static com.nimbusds.oauth2.sdk.GrantType |
GRANT_TYPE
The handled grant type.
|
Modifier and Type | Method and Description |
---|---|
GrantAuthorization |
processGrant(com.nimbusds.oauth2.sdk.Scope scope,
com.nimbusds.oauth2.sdk.id.ClientID clientID,
com.nimbusds.oauth2.sdk.client.ClientMetadata clientMetadata)
Handles a client credentials grant.
|
getGrantType
static final com.nimbusds.oauth2.sdk.GrantType GRANT_TYPE
GrantAuthorization processGrant(com.nimbusds.oauth2.sdk.Scope scope, com.nimbusds.oauth2.sdk.id.ClientID clientID, com.nimbusds.oauth2.sdk.client.ClientMetadata clientMetadata) throws com.nimbusds.oauth2.sdk.GeneralException
scope
- The requested scope, null
if not
specified.clientID
- The client identifier. Not null
.clientMetadata
- The OAuth 2.0 client metadata. Not
null
.
If the requested scope is invalid, unknown, malformed, or exceeds
the scope granted by the resource owner the handler must throw a
GeneralException
with an
invalid_scope
error code.
com.nimbusds.oauth2.sdk.GeneralException
- If the grant is invalid, or another
exception was encountered.Copyright © 2021 Connect2id Ltd.. All rights reserved.