001package com.nimbusds.jwt;
002
003
004/**
005 * JSON Web Token (JWT) claim names. The claim names defined in
006 * <a href="https://datatracker.ietf.org/doc/html/rfc7519">RFC 7519</a> (JWT)
007 * and other standards, such as OpenID Connect, are tracked in a
008 * <a href="https://www.iana.org/assignments/jwt/jwt.xhtml#claims">JWT claims
009 * registry</a> administered by IANA.
010 *
011 * @author Nathaniel Hart
012 * @version 2021-07-11
013 */
014public final class JWTClaimNames {
015        
016        
017        /**
018         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">RFC 7519 "iss" (Issuer) Claim</a>
019         */
020        public static final String ISSUER = "iss";
021        
022        
023        /**
024         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">RFC 7519 "sub" (Subject) Claim</a>
025         */
026        public static final String SUBJECT = "sub";
027        
028        
029        /**
030         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">RFC 7519 "aud" (Audience) Claim</a>
031         */
032        public static final String AUDIENCE = "aud";
033        
034        
035        /**
036         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">RFC 7519 "exp" (Expiration Time) Claim</a>
037         */
038        public static final String EXPIRATION_TIME = "exp";
039        
040        
041        /**
042         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">RFC 7519 "nbf" (Not Before) Claim</a>
043         */
044        public static final String NOT_BEFORE = "nbf";
045        
046        
047        /**
048         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">RFC 7519 "iat" (Issued At) Claim</a>
049         */
050        public static final String ISSUED_AT = "iat";
051        
052        
053        /**
054         * @see <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">RFC 7519 "jti" (JWT ID) Claim</a>
055         */
056        public static final String JWT_ID = "jti";
057        
058        
059        private JWTClaimNames() {}
060}