All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.auth0.jwt.RegisteredClaims Maven / Gradle / Ivy

The newest version!
package com.auth0.jwt;

/**
 * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1 of
 * RFC 7529
 */
public final class RegisteredClaims {

    private RegisteredClaims() {
    }

    /**
     * The "iss" (issuer) claim identifies the principal that issued the JWT.
     * Refer RFC 7529 Section 4.1.1
     */
    public static final String ISSUER = "iss";

    /**
     * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
     * Refer RFC 7529 Section 4.1.2
     */
    public static final String SUBJECT = "sub";

    /**
     * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
     * Refer RFC 7529 Section 4.1.3
     */
    public static final String AUDIENCE = "aud";

    /**
     * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
     * accepted for processing.
     * Refer RFC 7529 Section 4.1.4
     */
    public static final String EXPIRES_AT = "exp";

    /**
     * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
     * Refer RFC 7529 Section 4.1.5
     */
    public static final String NOT_BEFORE = "nbf";

    /**
     * The "iat" (issued at) claim identifies the time at which the JWT was issued.
     * Refer RFC 7529 Section 4.1.6
     */
    public static final String ISSUED_AT = "iat";

    /**
     * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
     * Refer RFC 7529 Section 4.1.7
     */
    public static final String JWT_ID = "jti";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy