org.opensaml.xml.security.x509
Class X509DigestCriteria

java.lang.Object
  extended by org.opensaml.xml.security.x509.X509DigestCriteria
All Implemented Interfaces:
Criteria

public final class X509DigestCriteria
extends Object
implements Criteria

An implementation of Criteria which specifies criteria based on the digest of an X.509 certificate.


Field Summary
private  String algorithm
          Digest algorithm.
private  byte[] x509digest
          X.509 certificate digest.
 
Constructor Summary
X509DigestCriteria(String alg, byte[] digest)
          Constructor.
 
Method Summary
 String getAlgorithm()
          Get the digest algorithm.
 byte[] getDigest()
          Get the certificate digest.
 void setAlgorithm(String alg)
          Set the digest algorithm.
 void setDigest(byte[] digest)
          Set the certificate digest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithm

private String algorithm
Digest algorithm.


x509digest

private byte[] x509digest
X.509 certificate digest.

Constructor Detail

X509DigestCriteria

public X509DigestCriteria(String alg,
                          byte[] digest)
Constructor.

Parameters:
alg - algorithm of digest computation
digest - certificate digest
Method Detail

getAlgorithm

public String getAlgorithm()
Get the digest algorithm.

Returns:
the digest algorithm

setAlgorithm

public void setAlgorithm(String alg)
Set the digest algorithm.

Parameters:
alg - the digest algorithm to set

getDigest

public byte[] getDigest()
Get the certificate digest.

Returns:
the digest

setDigest

public void setDigest(byte[] digest)
Set the certificate digest.

Parameters:
digest - the certificate digest to set


Copyright © 1999-2013. All Rights Reserved.