Algorithm
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
EC2Algorithm
|
Algorithm names and COSE identifiers for EC2
(public) keys. |
RSAAlgorithm
|
Algorithm names and COSE identifiers for RSA
(public) keys. |
|
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
|
|
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`Algorithm` is an interface for public key encryption algorithms, requiring implementations to adhere to RFC8152 for algorithm registration."],["This interface includes subclasses like `EC2Algorithm` for EC2 public keys and `RSAAlgorithm` for RSA public keys."],["It provides methods such as `fromAlgoValue` to create an `Algorithm` instance from a COSE identifier and `getAlgoValue` to retrieve the COSE value of the algorithm."],["`fromAlgoValue` may throw a `COSEAlgorithmIdentifier.UnsupportedAlgorithmIdentifierException` if the provided identifier is not supported."]]],[]]