Class COSEAlgorithms
java.lang.Object
com.authlete.cose.constants.COSEAlgorithms
COSE Algorithms
Name Value Description RS512-259 RSASSA-PKCS1-v1_5 using SHA-512 RS384-258 RSASSA-PKCS1-v1_5 using SHA-384 RS256-257 RSASSA-PKCS1-v1_5 using SHA-256 ES256K-47 ECDSA using secp256k1 curve and SHA-256 PS512-39 RSASSA-PSS w/ SHA-512 PS384-38 RSASSA-PSS w/ SHA-384 PS256-37 RSASSA-PSS w/ SHA-256 ES512-36 ECDSA w/ SHA-512 ES384-35 ECDSA w/ SHA-384 EdDSA-8 EdDSA ES256-7 ECDSA w/ SHA-256
- Since:
- 1.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEdDSA (-8); EdDSAstatic final intES256 (-7); ECDSA w/ SHA-256static final intES256K (-47); ECDSA using secp256k1 curve and SHA-256static final intES384 (-35); ECDSA w/ SHA-384static final intES512 (-36); ECDSA w/ SHA-512static final intPS256 (-37); RSASSA-PSS w/ SHA-256static final intPS384 (-38); RSASSA-PSS w/ SHA-384static final intPS512 (-39); RSASSA-PSS w/ SHA-512static final intRS256 (-257); RSASSA-PKCS1-v1_5 using SHA-256static final intRS384 (-258); RSASSA-PKCS1-v1_5 using SHA-384static final intRS512 (-259); RSASSA-PKCS1-v1_5 using SHA-512 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetNameByValue(int value) Get the name of the algorithm to which the integer identifier has been assigned to.static intgetValueByName(String name) Get the integer identifier assigned to the algorithm.
-
Field Details
-
RS512
public static final int RS512RS512 (-259); RSASSA-PKCS1-v1_5 using SHA-512- Since:
- 1.3
- See Also:
-
RS384
public static final int RS384RS384 (-258); RSASSA-PKCS1-v1_5 using SHA-384- Since:
- 1.3
- See Also:
-
RS256
public static final int RS256RS256 (-257); RSASSA-PKCS1-v1_5 using SHA-256- Since:
- 1.3
- See Also:
-
ES256K
public static final int ES256KES256K (-47); ECDSA using secp256k1 curve and SHA-256- Since:
- 1.3
- See Also:
-
PS512
public static final int PS512PS512 (-39); RSASSA-PSS w/ SHA-512- See Also:
-
PS384
public static final int PS384PS384 (-38); RSASSA-PSS w/ SHA-384- See Also:
-
PS256
public static final int PS256PS256 (-37); RSASSA-PSS w/ SHA-256- See Also:
-
ES512
public static final int ES512ES512 (-36); ECDSA w/ SHA-512- See Also:
-
ES384
public static final int ES384ES384 (-35); ECDSA w/ SHA-384- See Also:
-
EdDSA
public static final int EdDSAEdDSA (-8); EdDSA- See Also:
-
ES256
public static final int ES256ES256 (-7); ECDSA w/ SHA-256- See Also:
-
-
Method Details
-
getValueByName
Get the integer identifier assigned to the algorithm.- Parameters:
name- An algorithm name such as"ES256". Ifnullis given, 0 is returned.- Returns:
- The integer identifier assigned to the algorithm. If the given name is not recognized, 0 is returned.
-
getNameByValue
Get the name of the algorithm to which the integer identifier has been assigned to.- Parameters:
value- An integer identifier assigned to an algorithm.- Returns:
- The name of the algorithm to which the integer identifier
has been assigned to. If the given identifier is not
recognized,
nullis returned.
-