Package org.radarbase.auth.jwks
Class ECPEMCertificateParser
-
- All Implemented Interfaces:
-
org.radarbase.auth.jwks.PEMCertificateParser
public final class ECPEMCertificateParser implements PEMCertificateParser
-
-
Field Summary
Fields Modifier and Type Field Description private final StringjwtAlgorithmprivate final StringkeyHeaderprivate final StringkeyFactoryType
-
Constructor Summary
Constructors Constructor Description ECPEMCertificateParser()
-
Method Summary
Modifier and Type Method Description StringgetJwtAlgorithm()Get the algorithm description as it will be reported by the server public key endpoint (e.g. StringgetKeyHeader()Get the header for a PEM encoded key that this algorithm can parse. StringgetKeyFactoryType()The key factory type for keys that this algorithm can parse. AlgorithmparseAlgorithm(String publicKey)Build a verification algorithm based on the supplied public key. -
-
Method Detail
-
getJwtAlgorithm
String getJwtAlgorithm()
Get the algorithm description as it will be reported by the server public key endpoint (e.g. "SHA256withRSA" or "SHA256withEC").
-
getKeyHeader
String getKeyHeader()
Get the header for a PEM encoded key that this algorithm can parse.
-
getKeyFactoryType
String getKeyFactoryType()
The key factory type for keys that this algorithm can parse.
-
parseAlgorithm
Algorithm parseAlgorithm(String publicKey)
Build a verification algorithm based on the supplied public key.
- Parameters:
publicKey- the public key in PEM format
-
-
-
-