Package org.opensaml.security.x509
Class X509DigestCriterion
java.lang.Object
org.opensaml.security.x509.X509DigestCriterion
- All Implemented Interfaces:
Criterion
An implementation of
Criterion
which specifies criteria based on
the digest of an X.509 certificate.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Digest algorithm.private byte[]
X.509 certificate digest. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the digest algorithm.byte[]
Get the certificate digest.int
hashCode()
void
setAlgorithm
(String alg) Set the digest algorithm.void
setDigest
(byte[] digest) Set the certificate digest.toString()
-
Field Details
-
algorithm
Digest algorithm. -
x509digest
private byte[] x509digestX.509 certificate digest.
-
-
Constructor Details
-
X509DigestCriterion
Constructor.- Parameters:
alg
- algorithm of digest computationdigest
- certificate digest
-
-
Method Details
-
getAlgorithm
Get the digest algorithm.- Returns:
- the digest algorithm
-
setAlgorithm
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
-
toString
-
hashCode
public int hashCode() -
equals
-