com.authlete.cwt.constants.CWTClaims Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cbor Show documentation
Show all versions of cbor Show documentation
A Java library for CBOR, COSE, CWT and mdoc.
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 Name
* Claim Key
* Claim Value Type
* Claim Description
*
*
*
* {@link #ISS iss}
* 1
* text string
* Issuer
*
*
*
* {@link #SUB sub}
* 2
* text string
* Subject
*
*
*
* {@link #AUD aud}
* 3
* text string
* Audience
*
*
*
* {@link #EXP exp}
* 4
* integer or floating-point number
* Expiration Time
*
*
*
* {@link #NBF nbf}
* 5
* integer or floating-point number
* Not Before
*
*
*
* {@link #IAT iat}
* 6
* integer or floating-point number
* Issued At
*
*
*
* {@link #CTI cti}
* 7
* byte string
* CWT ID
*
*
*
* {@link #CNF cnf}
* 8
* map
* Confirmation
*
*
*
* {@link #SCOPE scope}
* 9
* byte string or text string
* The scope of an access token, as defined in [RFC6749].
*
*
*
* {@link #NONCE Nonce}
* 10
* byte string
* Nonce (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()
{
}
}