Package COSE
Enum AlgorithmID
- java.lang.Object
-
- java.lang.Enum<AlgorithmID>
-
- COSE.AlgorithmID
-
- All Implemented Interfaces:
Serializable,Comparable<AlgorithmID>,java.lang.constant.Constable
public enum AlgorithmID extends Enum<AlgorithmID>
- Author:
- jimsch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description com.upokecenter.cbor.CBORObjectAsCBOR()static AlgorithmIDFromCBOR(com.upokecenter.cbor.CBORObject obj)intgetKeySize()intgetTagSize()static AlgorithmIDvalueOf(String name)Returns the enum constant of this type with the specified name.static AlgorithmID[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AES_GCM_128
public static final AlgorithmID AES_GCM_128
-
AES_GCM_192
public static final AlgorithmID AES_GCM_192
-
AES_GCM_256
public static final AlgorithmID AES_GCM_256
-
HMAC_SHA_256_64
public static final AlgorithmID HMAC_SHA_256_64
-
HMAC_SHA_256
public static final AlgorithmID HMAC_SHA_256
-
HMAC_SHA_384
public static final AlgorithmID HMAC_SHA_384
-
HMAC_SHA_512
public static final AlgorithmID HMAC_SHA_512
-
AES_CCM_16_64_128
public static final AlgorithmID AES_CCM_16_64_128
-
AES_CCM_16_64_256
public static final AlgorithmID AES_CCM_16_64_256
-
AES_CCM_64_64_128
public static final AlgorithmID AES_CCM_64_64_128
-
AES_CCM_64_64_256
public static final AlgorithmID AES_CCM_64_64_256
-
AES_CBC_MAC_128_64
public static final AlgorithmID AES_CBC_MAC_128_64
-
AES_CBC_MAC_256_64
public static final AlgorithmID AES_CBC_MAC_256_64
-
AES_CBC_MAC_128_128
public static final AlgorithmID AES_CBC_MAC_128_128
-
AES_CBC_MAC_256_128
public static final AlgorithmID AES_CBC_MAC_256_128
-
AES_CCM_16_128_128
public static final AlgorithmID AES_CCM_16_128_128
-
AES_CCM_16_128_256
public static final AlgorithmID AES_CCM_16_128_256
-
AES_CCM_64_128_128
public static final AlgorithmID AES_CCM_64_128_128
-
AES_CCM_64_128_256
public static final AlgorithmID AES_CCM_64_128_256
-
AES_KW_128
public static final AlgorithmID AES_KW_128
-
AES_KW_192
public static final AlgorithmID AES_KW_192
-
AES_KW_256
public static final AlgorithmID AES_KW_256
-
Direct
public static final AlgorithmID Direct
-
ECDSA_256
public static final AlgorithmID ECDSA_256
-
HKDF_HMAC_SHA_256
public static final AlgorithmID HKDF_HMAC_SHA_256
-
HKDF_HMAC_SHA_512
public static final AlgorithmID HKDF_HMAC_SHA_512
-
HKDF_HMAC_AES_128
public static final AlgorithmID HKDF_HMAC_AES_128
-
HKDF_HMAC_AES_256
public static final AlgorithmID HKDF_HMAC_AES_256
-
ECDSA_384
public static final AlgorithmID ECDSA_384
-
ECDSA_512
public static final AlgorithmID ECDSA_512
-
EDDSA
public static final AlgorithmID EDDSA
-
ECDH_ES_HKDF_256
public static final AlgorithmID ECDH_ES_HKDF_256
-
ECDH_ES_HKDF_512
public static final AlgorithmID ECDH_ES_HKDF_512
-
ECDH_SS_HKDF_256
public static final AlgorithmID ECDH_SS_HKDF_256
-
ECDH_SS_HKDF_512
public static final AlgorithmID ECDH_SS_HKDF_512
-
ECDH_ES_HKDF_256_AES_KW_128
public static final AlgorithmID ECDH_ES_HKDF_256_AES_KW_128
-
ECDH_ES_HKDF_256_AES_KW_192
public static final AlgorithmID ECDH_ES_HKDF_256_AES_KW_192
-
ECDH_ES_HKDF_256_AES_KW_256
public static final AlgorithmID ECDH_ES_HKDF_256_AES_KW_256
-
ECDH_SS_HKDF_256_AES_KW_128
public static final AlgorithmID ECDH_SS_HKDF_256_AES_KW_128
-
ECDH_SS_HKDF_256_AES_KW_192
public static final AlgorithmID ECDH_SS_HKDF_256_AES_KW_192
-
ECDH_SS_HKDF_256_AES_KW_256
public static final AlgorithmID ECDH_SS_HKDF_256_AES_KW_256
-
RSA_PSS_256
public static final AlgorithmID RSA_PSS_256
-
RSA_PSS_384
public static final AlgorithmID RSA_PSS_384
-
RSA_PSS_512
public static final AlgorithmID RSA_PSS_512
-
-
Method Detail
-
values
public static AlgorithmID[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlgorithmID valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
FromCBOR
public static AlgorithmID FromCBOR(com.upokecenter.cbor.CBORObject obj) throws CoseException
- Throws:
CoseException
-
AsCBOR
public com.upokecenter.cbor.CBORObject AsCBOR()
-
getKeySize
public int getKeySize()
-
getTagSize
public int getTagSize()
-
-