Package org.forgerock.secrets.keys
Class CertificateVerificationKey
java.lang.Object
org.forgerock.secrets.Secret
org.forgerock.secrets.keys.CryptoKey
org.forgerock.secrets.keys.CertificateVerificationKey
- All Implemented Interfaces:
AutoCloseable
A key used for verifying certificate signatures.
-
Constructor Summary
ConstructorDescriptionCertificateVerificationKey
(SecretBuilder builder) Initialises the key with the given secret data. -
Method Summary
Modifier and TypeMethodDescriptionReturns a signature object initialised for verification using a default algorithm for this key type.getSignature
(String algorithm) Returns a signature object initialised for verification.Methods inherited from class org.forgerock.secrets.keys.CryptoKey
allowsAlgorithm, close, export, getCertificate, getCertificate, getCertificateChain, getCertificateChain, getKeyAlgorithm, getKeyType, getKeyUsages, getPublicKey, getPublicKey, isClosed, isExtractable, reveal, revealAndClose, toBuilder, toString
Methods inherited from class org.forgerock.secrets.Secret
equals, getExpiryTime, getStableId, hashCode, isExpired
-
Constructor Details
-
CertificateVerificationKey
Initialises the key with the given secret data.- Parameters:
builder
- the builder object.- Throws:
NoSuchSecretException
- if the secret could not be constructed from the builder.
-
-
Method Details
-
getSignature
Returns a signature object initialised for verification.- Parameters:
algorithm
- the signature algorithm.- Returns:
- the signature object.
-
getSignature
Returns a signature object initialised for verification using a default algorithm for this key type.- Returns:
- the signature object.
-