Algorithm

  • Algorithm is an interface for algorithms used in public key encryption, requiring implementations to conform to RFC8152 guidelines.

  • The interface has known indirect subclasses, EC2Algorithm and RSAAlgorithm, which provide algorithm names and COSE identifiers for EC2 and RSA public keys, respectively.

  • It includes public methods like fromAlgoValue to get an Algorithm from a COSE value and getAlgoValue to retrieve the COSE value for the algorithm used in credential encryption.

public interface Algorithm
Known Indirect Subclasses

An interface for an algorithm used in public key encryption. All implementations must conform to the guidelines regarding algorithm registrations in RFC8152.

Public Method Summary

static Algorithm
fromAlgoValue(int algoValue)
abstract int
getAlgoValue()
Gets the COSE value for the algorithm used in the encryption of the credential.

Public Methods

public static Algorithm fromAlgoValue (int algoValue)

public abstract int getAlgoValue ()

Gets the COSE value for the algorithm used in the encryption of the credential.