Class CertificateService

    • Method Detail

      • validate

        @Supported
        public boolean validate​(X509Certificate certificate,
                                String base64EncodedPublicKey)
        Validates whether a X509Certificate was signed using the private key that corresponds to the specified public key.
        Parameters:
        certificate - the X509Certificate to validate against
        base64EncodedPublicKey - 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