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

be.atbash.ee.security.octopus.nimbus.jwt.JWTClaimNames Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2017-2022 Rudy De Busscher (https://www.atbash.be)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package be.atbash.ee.security.octopus.nimbus.jwt;

import be.atbash.util.PublicAPI;

/**
 * The registered claims for the JSON Web Token (JWT) RFC7519 standard.
 *
 * @author Nathaniel Hart
 * @version 2021-06-15
 */

@PublicAPI
public final class JWTClaimNames {

    private JWTClaimNames() {
    }

    /**
     * @see RFC 7519 "iss" (Issuer) Claim
     */
    public static final String ISSUER = "iss";


    /**
     * @see RFC 7519 "sub" (Subject) Claim
     */
    public static final String SUBJECT = "sub";


    /**
     * @see RFC 7519 "aud" (Audience) Claim
     */
    public static final String AUDIENCE = "aud";


    /**
     * @see RFC 7519 "exp" (Expiration Time) Claim
     */
    public static final String EXPIRATION_TIME = "exp";


    /**
     * @see RFC 7519 "nbf" (Not Before) Claim
     */
    public static final String NOT_BEFORE = "nbf";


    /**
     * @see RFC 7519 "iat" (Issued At) Claim
     */
    public static final String ISSUED_AT = "iat";


    /**
     * @see RFC 7519 "jti" (JWT ID) Claim
     */
    public static final String JWT_ID = "jti";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy