Class CertificateVerificationKey

java.lang.Object
org.forgerock.secrets.Secret
org.forgerock.secrets.keys.CryptoKey
org.forgerock.secrets.keys.CertificateVerificationKey
All Implemented Interfaces:
AutoCloseable

public class CertificateVerificationKey extends CryptoKey
A key used for verifying certificate signatures.
  • Constructor Details

    • CertificateVerificationKey

      public CertificateVerificationKey(SecretBuilder builder) throws NoSuchSecretException
      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

      public Signature getSignature(String algorithm)
      Returns a signature object initialised for verification.
      Parameters:
      algorithm - the signature algorithm.
      Returns:
      the signature object.
    • getSignature

      public Signature getSignature()
      Returns a signature object initialised for verification using a default algorithm for this key type.
      Returns:
      the signature object.