Package org.opensaml.security.x509
Class X509DigestCriterion
- java.lang.Object
-
- org.opensaml.security.x509.X509DigestCriterion
-
-
Field Summary
Fields Modifier and Type Field Description private String
algorithm
Digest algorithm.private byte[]
x509digest
X.509 certificate digest.
-
Constructor Summary
Constructors Constructor Description X509DigestCriterion(String alg, byte[] digest)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAlgorithm()
Get the digest algorithm.byte[]
getDigest()
Get the certificate digest.int
hashCode()
void
setAlgorithm(String alg)
Set the digest algorithm.void
setDigest(byte[] digest)
Set the certificate digest.String
toString()
-
-
-
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 computationdigest
- 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
-
-