Package org.radarbase.auth.jwks
Interface PEMCertificateParser
-
- All Implemented Interfaces:
public interface PEMCertificateParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPEMCertificateParser.Companion
-
Method Summary
Modifier and Type Method Description abstract AlgorithmparseAlgorithm(String publicKey)Build a verification algorithm based on the supplied public key. abstract StringgetKeyFactoryType()The key factory type for keys that this algorithm can parse. abstract StringgetJwtAlgorithm()Get the algorithm description as it will be reported by the server public key endpoint (e.g. abstract StringgetKeyHeader()Get the header for a PEM encoded key that this algorithm can parse. -
-
Method Detail
-
parseAlgorithm
abstract Algorithm parseAlgorithm(String publicKey)
Build a verification algorithm based on the supplied public key.
- Parameters:
publicKey- the public key in PEM format
-
getKeyFactoryType
abstract String getKeyFactoryType()
The key factory type for keys that this algorithm can parse.
-
getJwtAlgorithm
abstract String getJwtAlgorithm()
Get the algorithm description as it will be reported by the server public key endpoint (e.g. "SHA256withRSA" or "SHA256withEC").
-
getKeyHeader
abstract String getKeyHeader()
Get the header for a PEM encoded key that this algorithm can parse.
-
-
-
-