Package org.bouncycastle.cert.selector
Class X509AttributeCertificateHolderSelector
- java.lang.Object
-
- org.bouncycastle.cert.selector.X509AttributeCertificateHolderSelector
-
- All Implemented Interfaces:
java.lang.Cloneable,org.bouncycastle.util.Selector
public class X509AttributeCertificateHolderSelector extends java.lang.Object implements org.bouncycastle.util.SelectorThis class is anSelectorlike implementation to select attribute certificates from a given set of criteria.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a clone of this object.X509AttributeCertificateHoldergetAttributeCert()Returns the attribute certificate holder which must be matched.java.util.DategetAttributeCertificateValid()Get the criteria for the validity.AttributeCertificateHoldergetHolder()Gets the holder.AttributeCertificateIssuergetIssuer()Returns the issuer criterion.java.math.BigIntegergetSerialNumber()Gets the serial number the attribute certificate must have.java.util.CollectiongetTargetGroups()Gets the target groups.java.util.CollectiongetTargetNames()Gets the target names.booleanmatch(java.lang.Object obj)Decides if the given attribute certificate should be selected.
-
-
-
Method Detail
-
match
public boolean match(java.lang.Object obj)
Decides if the given attribute certificate should be selected.- Specified by:
matchin interfaceorg.bouncycastle.util.Selector- Parameters:
obj- The X509AttributeCertificateHolder which should be checked.- Returns:
trueif the attribute certificate is a matchfalseotherwise.
-
clone
public java.lang.Object clone()
Returns a clone of this object.- Specified by:
clonein interfaceorg.bouncycastle.util.Selector- Overrides:
clonein classjava.lang.Object- Returns:
- the clone.
-
getAttributeCert
public X509AttributeCertificateHolder getAttributeCert()
Returns the attribute certificate holder which must be matched.- Returns:
- Returns an X509AttributeCertificateHolder
-
getAttributeCertificateValid
public java.util.Date getAttributeCertificateValid()
Get the criteria for the validity.- Returns:
- Returns the attributeCertificateValid.
-
getHolder
public AttributeCertificateHolder getHolder()
Gets the holder.- Returns:
- Returns the holder.
-
getIssuer
public AttributeCertificateIssuer getIssuer()
Returns the issuer criterion.- Returns:
- Returns the issuer.
-
getSerialNumber
public java.math.BigInteger getSerialNumber()
Gets the serial number the attribute certificate must have.- Returns:
- Returns the serialNumber.
-
getTargetNames
public java.util.Collection getTargetNames()
Gets the target names. The collection consists of GeneralName objects.The returned collection is immutable.
- Returns:
- The collection of target names
-
getTargetGroups
public java.util.Collection getTargetGroups()
Gets the target groups. The collection consists of GeneralName objects.The returned collection is immutable.
- Returns:
- The collection of target groups.
-
-