Class CertificateService
- java.lang.Object
-
- org.forgerock.openam.shared.security.crypto.CertificateService
-
@Supported public final class CertificateService extends Object
This service provides operations for queryingX509Certificates.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(X509Certificate certificate, String base64EncodedPublicKey)Validates whether aX509Certificatewas signed using the private key that corresponds to the specified public key.
-
-
-
Method Detail
-
validate
@Supported public boolean validate(X509Certificate certificate, String base64EncodedPublicKey)
Validates whether aX509Certificatewas signed using the private key that corresponds to the specified public key.- Parameters:
certificate- theX509Certificateto 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
-
-