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

com.authlete.cwt.constants.CWTClaims Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2023 Authlete, Inc.
 *
 * 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
 *
 *     https://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 com.authlete.cwt.constants;


/**
 * CWT Claims
 *
 * 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Claim NameClaim KeyClaim Value TypeClaim Description
{@link #ISS iss}1text stringIssuer
{@link #SUB sub}2text stringSubject
{@link #AUD aud}3text stringAudience
{@link #EXP exp}4integer or floating-point numberExpiration Time
{@link #NBF nbf}5integer or floating-point numberNot Before
{@link #IAT iat}6integer or floating-point numberIssued At
{@link #CTI cti}7byte stringCWT ID
{@link #CNF cnf}8mapConfirmation
{@link #SCOPE scope}9byte string or text stringThe scope of an access token, as defined in [RFC6749].
{@link #NONCE Nonce}10byte stringNonce (TEMPORARY - registered 2022-03-23, extension registered 2023-02-13, expires 2024-03-23)
*
* * @since 1.4 * * @see IANA: CBOR Web Token (CWT) Claims */ public class CWTClaims { /** * iss (1); Issuer */ public static final int ISS = 1; /** * sub (2); Subject */ public static final int SUB = 2; /** * aud (3); Audience */ public static final int AUD = 3; /** * exp (4); Expiration Time */ public static final int EXP = 4; /** * nbf (5); Not Before */ public static final int NBF = 5; /** * iat (6); Issued At */ public static final int IAT = 6; /** * cti (7); CWT ID */ public static final int CTI = 7; /** * cnf (8); Confirmation */ public static final int CNF = 8; /** * scope (9); The scope of an access token, as defined in [RFC6749]. */ public static final int SCOPE = 9; /** * Nonce (10); Nonce * *

* (TEMPORARY - registered 2022-03-23, extension registered 2023-02-13, expires 2024-03-23) *

*/ public static final int NONCE = 10; private CWTClaims() { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy