AI-generated Key Takeaways
-
COSEAlgorithmIdentifier specifies the cryptographic signature algorithm and the type of asymmetric key pair to be generated for a new credential.
-
This class includes methods for converting to and from a COSE integer value, and also inherits standard object and Parcelable methods.
-
An exception, UnsupportedAlgorithmIdentifierException, is defined for handling unrecognized algorithm identifiers.
This class specifies the cryptographic signature algorithm with which the newly generated credential will be used, and thus the type of asymmetric key pair to be generated.
Example usage
COSEAlgorithmIdentifier algIdentifier1 = new COSEAlgorithmIdentifier(EC2Algorithm.ES256);
COSEAlgorithmIdentifier algIdentifier2 = new COSEAlgorithmIdentifier(RSAAlgorithm.PS512);
COSEAlgorithmIdentifier algIdentifier3 = COSEAlgorithmIdentifier.fromCoseValue(-7);
Nested Class Summary
class | COSEAlgorithmIdentifier.UnsupportedAlgorithmIdentifierException | Exception thrown when an unsupported or unrecognized algorithm identifier is encountered. |
Inherited Constant Summary
Public Method Summary
int | |
boolean | |
static COSEAlgorithmIdentifier |
fromCoseValue(int value)
|
int |
hashCode()
|
int | |
void |
writeToParcel(Parcel parcel, int
flags)
|