Class AssertionGrant

  • Direct Known Subclasses:
    JWTBearerGrant, SAML2BearerGrant

    public abstract class AssertionGrant
    extends AuthorizationGrant
    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), section 4.1.
    • Constructor Detail

      • AssertionGrant

        protected AssertionGrant​(GrantType type)
        Creates a new assertion-based authorisation grant.
        Parameters:
        type - The authorisation grant type. Must not be null.
    • Method Detail

      • getAssertion

        public abstract String getAssertion()
        Gets the assertion.
        Returns:
        The assertion as a string.