COSEAlgorithmIdentifier

public classCOSEAlgorithmIdentifierextendsObject
implementsParcelable

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

SeeCOSE 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(Parcelparcel, int flags)

Inherited Method Summary

Public Methods

public intdescribeContents()

public booleanequals(Objectobj)

public inthashCode()

public inttoCoseValue()

public voidwriteToParcel(Parcelparcel, int flags)