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

com.authlete.cose.constants.COSEKeyCommonParameters 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.cose.constants;


/**
 * COSE Key Common Parameters
 *
 * 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
NameLabelCBOR TypeDescription
{@link #KTY kty}1tstr / intIdentification of the key type
{@link #KID kid}2bstrKey identification value - match to kid in message
{@link #ALG alg}3tstr / intKey usage restriction to this algorithm
{@link #KEY_OPS key_ops}4[+ (tstr/int)]Restrict set of permissible operations
{@link #BASE_IV Base IV}5bstrBase IV to be XORed with Partial IVs
*
* * @since 1.1 * * @see IANA: COSE Key Common Parameters */ public final class COSEKeyCommonParameters { /** kty (1) */ public static final int KTY = 1; /** kid (2) */ public static final int KID = 2; /** alg (3) */ public static final int ALG = 3; /** key_ops (4) */ public static final int KEY_OPS = 4; /** Base IV (5) */ public static final int BASE_IV = 5; private COSEKeyCommonParameters() { } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy