COSEAlgorithmIdentifier

public class COSEAlgorithmIdentifier extends Object
implements Parcelable

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);
 

See COSE Algorithm Registrations

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
int
void
writeToParcel(Parcel parcel, int flags)

Inherited Method Summary

Public Methods

public int describeContents ()

public boolean equals (Object obj)

public int hashCode ()

public int toCoseValue ()

public void writeToParcel (Parcel parcel, int flags)