public class X509AttributeCertificateSelectorBuilder extends Object
Constructor and Description |
---|
X509AttributeCertificateSelectorBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addTargetGroup(GeneralName group)
Adds a target group criterion for the attribute certificate to the target
information extension criteria.
|
void |
addTargetName(GeneralName name)
Adds a target name criterion for the attribute certificate to the target
information extension criteria.
|
X509AttributeCertificateSelector |
build() |
void |
setAttributeCert(X509AttributeCertificateHolder attributeCert)
Set the attribute certificate to be matched.
|
void |
setAttributeCertificateValid(Date attributeCertificateValid)
Set the time, when the certificate must be valid.
|
void |
setHolder(AttributeCertificateHolder holder)
Sets the holder.
|
void |
setIssuer(AttributeCertificateIssuer issuer)
Sets the issuer the attribute certificate must have.
|
void |
setSerialNumber(BigInteger serialNumber)
Sets the serial number the attribute certificate must have.
|
void |
setTargetGroups(Collection names)
Adds a collection with target groups criteria.
|
void |
setTargetNames(Collection names)
Adds a collection with target names criteria.
|
public X509AttributeCertificateSelectorBuilder()
public void setAttributeCert(X509AttributeCertificateHolder attributeCert)
null
is
given any will do.attributeCert
- The attribute certificate holder to set.public void setAttributeCertificateValid(Date attributeCertificateValid)
null
is given any will do.attributeCertificateValid
- The attribute certificate validation
time to set.public void setHolder(AttributeCertificateHolder holder)
null
is given any will do.holder
- The holder to set.public void setIssuer(AttributeCertificateIssuer issuer)
null
is given any will do.issuer
- The issuer to set.public void setSerialNumber(BigInteger serialNumber)
null
is given any will do.serialNumber
- The serialNumber to set.public void addTargetName(GeneralName name)
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.
name
- The name as a GeneralName (not null
)public void setTargetNames(Collection names) throws IOException
null
is
given any will do.
The collection consists of either GeneralName objects or byte[] arrays representing DER encoded GeneralName structures.
names
- A collection of target names.IOException
- if a parsing error occurs.addTargetName(old.org.bouncycastle.asn1.x509.GeneralName)
public void addTargetGroup(GeneralName group)
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.
group
- The group as GeneralName form (not null
)public void setTargetGroups(Collection names) throws IOException
null
is
given any will do.
The collection consists of GeneralName
objects or byte[]
names
- A collection of target groups.IOException
- if a parsing error occurs.addTargetGroup(old.org.bouncycastle.asn1.x509.GeneralName)
public X509AttributeCertificateSelector build()
Copyright © 2015. All rights reserved.