|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.cert.selector.X509AttributeCertificateHolderSelectorBuilder
This class builds selectors according to the set criteria.
Constructor Summary | |
X509AttributeCertificateHolderSelectorBuilder()
|
Method Summary | |
void |
addTargetGroup(org.bouncycastle.asn1.x509.GeneralName group)
Adds a target group criterion for the attribute certificate to the target information extension criteria. |
void |
addTargetName(org.bouncycastle.asn1.x509.GeneralName name)
Adds a target name criterion for the attribute certificate to the target information extension criteria. |
X509AttributeCertificateHolderSelector |
build()
|
void |
setAttributeCert(X509AttributeCertificateHolder 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)
Sets the holder. |
void |
setIssuer(AttributeCertificateIssuer issuer)
Sets the issuer the attribute certificate must have. |
void |
setSerialNumber(java.math.BigInteger serialNumber)
Sets the serial number the attribute certificate must have. |
void |
setTargetGroups(java.util.Collection names)
Adds a collection with target groups criteria. |
void |
setTargetNames(java.util.Collection names)
Adds a collection with target names criteria. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X509AttributeCertificateHolderSelectorBuilder()
Method Detail |
public void setAttributeCert(X509AttributeCertificateHolder attributeCert)
attributeCert
- The attribute certificate holder to set.public void setAttributeCertificateValid(java.util.Date attributeCertificateValid)
attributeCertificateValid
- The attribute certificate validation
time to set.public void setHolder(AttributeCertificateHolder holder)
holder
- The holder to set.public void setIssuer(AttributeCertificateIssuer issuer)
issuer
- The issuer to set.public void setSerialNumber(java.math.BigInteger serialNumber)
serialNumber
- The serialNumber to set.public void addTargetName(org.bouncycastle.asn1.x509.GeneralName name)
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(java.util.Collection names) throws java.io.IOException
The collection consists of either GeneralName objects or byte[] arrays representing DER encoded GeneralName structures.
names
- A collection of target names.java.io.IOException
- if a parsing error occurs.addTargetName(org.bouncycastle.asn1.x509.GeneralName)
public void addTargetGroup(org.bouncycastle.asn1.x509.GeneralName group)
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(java.util.Collection names) throws java.io.IOException
The collection consists of GeneralName objects or byte[] representing DER encoded GeneralNames.
names
- A collection of target groups.java.io.IOException
- if a parsing error occurs.addTargetGroup(org.bouncycastle.asn1.x509.GeneralName)
public X509AttributeCertificateHolderSelector build()
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |