Class X509DigestCriterion

  • All Implemented Interfaces:
    Criterion

    public final class X509DigestCriterion
    extends Object
    implements Criterion
    An implementation of Criterion which specifies criteria based on the digest of an X.509 certificate.
    • Field Detail

      • algorithm

        private String algorithm
        Digest algorithm.
      • x509digest

        private byte[] x509digest
        X.509 certificate digest.
    • Constructor Detail

      • X509DigestCriterion

        public X509DigestCriterion​(@Nonnull
                                   String alg,
                                   @Nonnull
                                   byte[] digest)
        Constructor.
        Parameters:
        alg - algorithm of digest computation
        digest - certificate digest
    • Method Detail

      • getAlgorithm

        @Nonnull
        public String getAlgorithm()
        Get the digest algorithm.
        Returns:
        the digest algorithm
      • setAlgorithm

        public void setAlgorithm​(@Nonnull
                                 String alg)
        Set the digest algorithm.
        Parameters:
        alg - the digest algorithm to set
      • getDigest

        @Nonnull
        public byte[] getDigest()
        Get the certificate digest.
        Returns:
        the digest
      • setDigest

        public void setDigest​(@Nonnull
                              byte[] digest)
        Set the certificate digest.
        Parameters:
        digest - the certificate digest to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object