Package com.nimbusds.oauth2.sdk
Class AssertionGrant
java.lang.Object
com.nimbusds.oauth2.sdk.AuthorizationGrant
com.nimbusds.oauth2.sdk.AssertionGrant
- Direct Known Subclasses:
JWTBearerGrant
,SAML2BearerGrant
Assertion grant. Used in access token requests with an assertion, such as a
SAML 2.0 assertion or JSON Web Token (JWT).
Related specifications:
- Assertion Framework for OAuth 2.0 Client Authentication and Authorization Grants (RFC 7521)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ParseException
Caches missingassertion
parameter exception. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AssertionGrant
(GrantType type) Creates a new assertion-based authorisation grant. -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.AuthorizationGrant
getType, parse, toParameters
-
Field Details
-
MISSING_ASSERTION_PARAM_EXCEPTION
Caches missingassertion
parameter exception.
-
-
Constructor Details
-
AssertionGrant
Creates a new assertion-based authorisation grant.- Parameters:
type
- The authorisation grant type. Must not benull
.
-
-
Method Details
-
getAssertion
Gets the assertion.- Returns:
- The assertion as a string.
-