001package com.nimbusds.openid.connect.provider.spi.tokens;
002
003
004import org.checkerframework.checker.nullness.qual.Nullable;
005
006import com.nimbusds.jose.JOSEObjectType;
007import com.nimbusds.jwt.JWTClaimsSet;
008
009
010/**
011 * JSON Web Token (JWT) encoder / decoder details.
012 */
013public interface JWTDetails {
014        
015        
016        /**
017         * Returns the JWT "typ" (type) header value to use.
018         *
019         * @return The "typ" (type) header value, {@code null} if none.
020         */
021        @Nullable JOSEObjectType getType();
022        
023        
024        /**
025         * Returns the JWT claims set.
026         *
027         * @return The JWT claims set.
028         */
029        JWTClaimsSet getJWTClaimsSet();
030}