Top Description Fields Constructors Methods
org.bouncycastle.cert.selector

public Class X509AttributeCertificateHolderSelector

extends Object
implements Selector
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Selector, java.lang.Cloneable
Imports
java.math.BigInteger, java.util.Collection, .Date, org.bouncycastle.asn1.x509.Extension, .GeneralName, .Target, .TargetInformation, .Targets, org.bouncycastle.cert.AttributeCertificateHolder, .AttributeCertificateIssuer, .X509AttributeCertificateHolder, org.bouncycastle.util.Selector

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

Field Summary

Modifier and TypeField and Description
private final X509AttributeCertificateHolder
private final Date
private final AttributeCertificateHolder
private final AttributeCertificateIssuer
private final BigInteger
private final Collection<E>
private final Collection<E>

Constructor Summary

AccessConstructor and Description
pack-priv
X509AttributeCertificateHolderSelector(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date attributeCertificateValid, X509AttributeCertificateHolder attributeCert, Collection<E> targetNames, Collection<E> targetGroups)

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the clone.
clone
()

Overrides java.lang.Object.clone.

Implements org.bouncycastle.util.Selector.clone.

Returns a clone of this object.

public X509AttributeCertificateHolder

Returns:

Returns an X509AttributeCertificateHolder
getAttributeCert
()

Returns the attribute certificate holder which must be matched.

public Date

Returns:

Returns the attributeCertificateValid.
getAttributeCertificateValid
()

Get the criteria for the validity.

public AttributeCertificateHolder

Returns:

Returns the holder.
getHolder
()

Gets the holder.

public AttributeCertificateIssuer

Returns:

Returns the issuer.
getIssuer
()

Returns the issuer criterion.

public BigInteger

Returns:

Returns the serialNumber.
getSerialNumber
()

Gets the serial number the attribute certificate must have.

public Collection<E>

Returns:

The collection of target groups.
getTargetGroups
()

Gets the target groups.

public Collection<E>

Returns:

The collection of target names
getTargetNames
()

Gets the target names.

public boolean

Returns:

true if the attribute certificate is a match false otherwise.
match
(Object
The X509AttributeCertificateHolder which should be checked.
obj
)

Implements org.bouncycastle.util.Selector.match.

Decides if the given attribute certificate should be selected.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeCertback to summary
private final X509AttributeCertificateHolder attributeCert
attributeCertificateValidback to summary
private final Date attributeCertificateValid
holderback to summary
private final AttributeCertificateHolder holder
issuerback to summary
private final AttributeCertificateIssuer issuer
serialNumberback to summary
private final BigInteger serialNumber
targetGroupsback to summary
private final Collection<E> targetGroups
targetNamesback to summary
private final Collection<E> targetNames

Constructor Detail

X509AttributeCertificateHolderSelectorback to summary
pack-priv X509AttributeCertificateHolderSelector(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date attributeCertificateValid, X509AttributeCertificateHolder attributeCert, Collection<E> targetNames, Collection<E> targetGroups)

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Implements org.bouncycastle.util.Selector.clone.

Returns a clone of this object.

Returns:Object

the clone.

getAttributeCertback to summary
public X509AttributeCertificateHolder getAttributeCert()

Returns the attribute certificate holder which must be matched.

Returns:X509AttributeCertificateHolder

Returns an X509AttributeCertificateHolder

getAttributeCertificateValidback to summary
public Date getAttributeCertificateValid()

Get the criteria for the validity.

Returns:Date

Returns the attributeCertificateValid.

getHolderback to summary
public AttributeCertificateHolder getHolder()

Gets the holder.

Returns:AttributeCertificateHolder

Returns the holder.

getIssuerback to summary
public AttributeCertificateIssuer getIssuer()

Returns the issuer criterion.

Returns:AttributeCertificateIssuer

Returns the issuer.

getSerialNumberback to summary
public BigInteger getSerialNumber()

Gets the serial number the attribute certificate must have.

Returns:BigInteger

Returns the serialNumber.

getTargetGroupsback to summary
public Collection<E> getTargetGroups()

Gets the target groups. The collection consists of GeneralName objects.

The returned collection is immutable.

Returns:Collection<E>

The collection of target groups.

getTargetNamesback to summary
public Collection<E> getTargetNames()

Gets the target names. The collection consists of GeneralName objects.

The returned collection is immutable.

Returns:Collection<E>

The collection of target names

matchback to summary
public boolean match(Object obj)

Implements org.bouncycastle.util.Selector.match.

Decides if the given attribute certificate should be selected.

Parameters
obj:Object

The X509AttributeCertificateHolder which should be checked.

Returns:boolean

true if the attribute certificate is a match false otherwise.