001package com.nimbusds.oauth2.sdk;
002
003
004/**
005 * Assertion grant. Used in access token requests with an assertion, such as a
006 * SAML 2.0 assertion or JSON Web Token (JWT).
007 *
008 * <p>Related specifications:
009 *
010 * <ul>
011 *     <li>Assertion Framework for OAuth 2.0 Client Authentication and
012 *         Authorization Grants (draft-ietf-oauth-assertions-16), section 4.1.
013 * </ul>
014 */
015public abstract class AssertionGrant extends AuthorizationGrant {
016
017
018        /**
019         * Creates a new assertion-based authorisation grant.
020         *
021         * @param type The authorisation grant type. Must not be {@code null}.
022         */
023        protected AssertionGrant(final GrantType type) {
024
025                super(type);
026        }
027
028
029        /**
030         * Gets the assertion.
031         *
032         * @return The assertion as a string.
033         */
034        public abstract String getAssertion();
035}