Class CertificateService
java.lang.Object
org.forgerock.openam.shared.security.crypto.CertificateService
This service provides operations for querying
X509Certificate
s.-
Method Summary
Modifier and TypeMethodDescriptionboolean
validate
(X509Certificate certificate, String base64EncodedPublicKey) Validates whether aX509Certificate
was signed using the private key that corresponds to the specified public key.
-
Method Details
-
validate
@Supported(scriptingApi=true) public boolean validate(X509Certificate certificate, String base64EncodedPublicKey) Validates whether aX509Certificate
was signed using the private key that corresponds to the specified public key.- Parameters:
certificate
- theX509Certificate
to validate againstbase64EncodedPublicKey
- the base64 encoded public key, the algorithm of which needs to be verified- Returns:
- true if the public key's algorithm verifies against the certificate, else false
-