Bouncy Castle Cryptography Library 1.36

org.bouncycastle.x509
Class X509AttributeCertStoreSelector

java.lang.Object
  extended byorg.bouncycastle.x509.X509AttributeCertStoreSelector
All Implemented Interfaces:
java.lang.Cloneable, Selector

public class X509AttributeCertStoreSelector
extends java.lang.Object
implements Selector

This class is an Selector like implementation to select attribute certificates from a given set of criteria.

See Also:
X509AttributeCertificate, X509Store

Constructor Summary
X509AttributeCertStoreSelector()
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 X509AttributeCertificate getAttributeCert()
          Returns the attribute certificate which must be matched.
 java.util.Date getAttributeCertificateValid()
          Get the criteria for the validity.
 AttributeCertificateHolder getHolder()
           
 AttributeCertificateIssuer getIssuer()
           
 java.math.BigInteger getSerialNumber()
           
 boolean match(java.lang.Object obj)
          Decides if the given attribute certificate should be selected.
 void setAttributeCert(X509AttributeCertificate attributeCert)
          Set the attribute certificate to be matched.
 void setAttributeCertificateValid(java.util.Date attributeCertificateValid)
          Set the time, when the certificate must be valid.
 void setHolder(AttributeCertificateHolder holder)
           
 void setIssuer(AttributeCertificateIssuer issuer)
           
 void setSerialNumber(java.math.BigInteger serialNumber)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509AttributeCertStoreSelector

public X509AttributeCertStoreSelector()
Method Detail

match

public boolean match(java.lang.Object obj)
Decides if the given attribute certificate should be selected.

Specified by:
match in interface Selector
Parameters:
obj - The attribute certificate which should be checked.
Returns:
true if the attribute certificate can be selected, false otherwise.

clone

public java.lang.Object clone()
Returns a clone of this object.

Specified by:
clone in interface Selector
Returns:
the clone.

getAttributeCert

public X509AttributeCertificate getAttributeCert()
Returns the attribute certificate which must be matched.

Returns:
Returns the attribute certificate.

setAttributeCert

public void setAttributeCert(X509AttributeCertificate attributeCert)
Set the attribute certificate to be matched.

Parameters:
attributeCert - The attribute certificate to set.

getAttributeCertificateValid

public java.util.Date getAttributeCertificateValid()
Get the criteria for the validity.

Returns:
Returns the attributeCertificateValid.

setAttributeCertificateValid

public void setAttributeCertificateValid(java.util.Date attributeCertificateValid)
Set the time, when the certificate must be valid.

Parameters:
attributeCertificateValid - The attribute certificate validation time to set.

getHolder

public AttributeCertificateHolder getHolder()
Returns:
Returns the holder.

setHolder

public void setHolder(AttributeCertificateHolder holder)
Parameters:
holder - The holder to set.

getIssuer

public AttributeCertificateIssuer getIssuer()
Returns:
Returns the issuer.

setIssuer

public void setIssuer(AttributeCertificateIssuer issuer)
Parameters:
issuer - The issuer to set.

getSerialNumber

public java.math.BigInteger getSerialNumber()
Returns:
Returns the serialNumber.

setSerialNumber

public void setSerialNumber(java.math.BigInteger serialNumber)
Parameters:
serialNumber - The serialNumber to set.

Bouncy Castle Cryptography Library 1.36