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

public Class X509AttributeCertificateHolderSelectorBuilder

extends Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.util.Collection, .Collections, .Date, .HashSet, .Iterator, .Set, org.bouncycastle.asn1.x509.GeneralName, org.bouncycastle.cert.AttributeCertificateHolder, .AttributeCertificateIssuer, .X509AttributeCertificateHolder

This class builds selectors according to the set criteria.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addTargetGroup(GeneralName
The group as GeneralName form (not null)
group
)

Adds a target group criterion for the attribute certificate to the target information extension criteria.

public void
addTargetName(GeneralName
The name as a GeneralName (not null)
name
)

Adds a target name criterion for the attribute certificate to the target information extension criteria.

public X509AttributeCertificateHolderSelector
private Set<E>
public void
setAttributeCert(X509AttributeCertificateHolder
The attribute certificate holder to set.
attributeCert
)

Set the attribute certificate to be matched.

public void
setAttributeCertificateValid(Date
The attribute certificate validation time to set.
attributeCertificateValid
)

Set the time, when the certificate must be valid.

public void
setHolder(AttributeCertificateHolder
The holder to set.
holder
)

Sets the holder.

public void
setIssuer(AttributeCertificateIssuer
The issuer to set.
issuer
)

Sets the issuer the attribute certificate must have.

public void
setSerialNumber(BigInteger
The serialNumber to set.
serialNumber
)

Sets the serial number the attribute certificate must have.

public void
setTargetGroups(Collection<E>
A collection of target groups.
names
)

Adds a collection with target groups criteria.

public void
setTargetNames(Collection<E>
A collection of target names.
names
)

Adds a collection with target names criteria.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

X509AttributeCertificateHolderSelectorBuilderback to summary
public X509AttributeCertificateHolderSelectorBuilder()

Method Detail

addTargetGroupback to summary
public void addTargetGroup(GeneralName group)

Adds a target group criterion for the attribute certificate to the target information extension criteria. The X509AttributeCertificateHolder must contain at least one of the specified target groups.

Each attribute certificate may contain a target information extension limiting the servers where this attribute certificate can be used. If this extension is not present, the attribute certificate is not targeted and may be accepted by any server.

Parameters
group:GeneralName

The group as GeneralName form (not null)

addTargetNameback to summary
public void addTargetName(GeneralName name)

Adds a target name criterion for the attribute certificate to the target information extension criteria. The X509AttributeCertificateHolder must contain at least one of the specified target names.

Each attribute certificate may contain a target information extension limiting the servers where this attribute certificate can be used. If this extension is not present, the attribute certificate is not targeted and may be accepted by any server.

Parameters
name:GeneralName

The name as a GeneralName (not null)

buildback to summary
public X509AttributeCertificateHolderSelector build()
extractGeneralNamesback to summary
private Set<E> extractGeneralNames(Collection<E> names) throws IOException
setAttributeCertback to summary
public void setAttributeCert(X509AttributeCertificateHolder attributeCert)

Set the attribute certificate to be matched. If null is given any will do.

Parameters
attributeCert:X509AttributeCertificateHolder

The attribute certificate holder to set.

setAttributeCertificateValidback to summary
public void setAttributeCertificateValid(Date attributeCertificateValid)

Set the time, when the certificate must be valid. If null is given any will do.

Parameters
attributeCertificateValid:Date

The attribute certificate validation time to set.

setHolderback to summary
public void setHolder(AttributeCertificateHolder holder)

Sets the holder. If null is given any will do.

Parameters
holder:AttributeCertificateHolder

The holder to set.

setIssuerback to summary
public void setIssuer(AttributeCertificateIssuer issuer)

Sets the issuer the attribute certificate must have. If null is given any will do.

Parameters
issuer:AttributeCertificateIssuer

The issuer to set.

setSerialNumberback to summary
public void setSerialNumber(BigInteger serialNumber)

Sets the serial number the attribute certificate must have. If null is given any will do.

Parameters
serialNumber:BigInteger

The serialNumber to set.

setTargetGroupsback to summary
public void setTargetGroups(Collection<E> names) throws IOException

Adds a collection with target groups criteria. If null is given any will do.

The collection consists of GeneralName objects or byte[] representing DER encoded GeneralNames.

Parameters
names:Collection<E>

A collection of target groups.

Exceptions
IOException:
if a parsing error occurs.
See Also
addTargetGroup(org.bouncycastle.asn1.x509.GeneralName)
setTargetNamesback to summary
public void setTargetNames(Collection<E> names) throws IOException

Adds a collection with target names criteria. If null is given any will do.

The collection consists of either GeneralName objects or byte[] arrays representing DER encoded GeneralName structures.

Parameters
names:Collection<E>

A collection of target names.

Exceptions
IOException:
if a parsing error occurs.
See Also
addTargetName(org.bouncycastle.asn1.x509.GeneralName)