public class X509AttributeCertStoreSelector extends java.lang.Object implements Selector
Selector
like implementation to select
attribute certificates from a given set of criteria.X509AttributeCertificate
,
X509Store
Constructor and Description |
---|
X509AttributeCertStoreSelector()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addTargetGroup(byte[] name)
Deprecated.
Adds a target group criterion for the attribute certificate to the target
information extension criteria.
|
void |
addTargetGroup(GeneralName group)
Deprecated.
Adds a target group criterion for the attribute certificate to the target
information extension criteria.
|
void |
addTargetName(byte[] name)
Deprecated.
Adds a target name criterion for the attribute certificate to the target
information extension criteria.
|
void |
addTargetName(GeneralName name)
Deprecated.
Adds a target name criterion for the attribute certificate to the target
information extension criteria.
|
java.lang.Object |
clone()
Deprecated.
Returns a clone of this object.
|
X509AttributeCertificate |
getAttributeCert()
Deprecated.
Returns the attribute certificate which must be matched.
|
java.util.Date |
getAttributeCertificateValid()
Deprecated.
Get the criteria for the validity.
|
AttributeCertificateHolder |
getHolder()
Deprecated.
Gets the holder.
|
AttributeCertificateIssuer |
getIssuer()
Deprecated.
Returns the issuer criterion.
|
java.math.BigInteger |
getSerialNumber()
Deprecated.
Gets the serial number the attribute certificate must have.
|
java.util.Collection |
getTargetGroups()
Deprecated.
Gets the target groups.
|
java.util.Collection |
getTargetNames()
Deprecated.
Gets the target names.
|
boolean |
match(java.lang.Object obj)
Deprecated.
Decides if the given attribute certificate should be selected.
|
void |
setAttributeCert(X509AttributeCertificate attributeCert)
Deprecated.
Set the attribute certificate to be matched.
|
void |
setAttributeCertificateValid(java.util.Date attributeCertificateValid)
Deprecated.
Set the time, when the certificate must be valid.
|
void |
setHolder(AttributeCertificateHolder holder)
Deprecated.
Sets the holder.
|
void |
setIssuer(AttributeCertificateIssuer issuer)
Deprecated.
Sets the issuer the attribute certificate must have.
|
void |
setSerialNumber(java.math.BigInteger serialNumber)
Deprecated.
Sets the serial number the attribute certificate must have.
|
void |
setTargetGroups(java.util.Collection names)
Deprecated.
Adds a collection with target groups criteria.
|
void |
setTargetNames(java.util.Collection names)
Deprecated.
Adds a collection with target names criteria.
|
public X509AttributeCertStoreSelector()
public boolean match(java.lang.Object obj)
public java.lang.Object clone()
public X509AttributeCertificate getAttributeCert()
public void setAttributeCert(X509AttributeCertificate attributeCert)
null
is
given any will do.attributeCert
- The attribute certificate to set.public java.util.Date getAttributeCertificateValid()
public void setAttributeCertificateValid(java.util.Date attributeCertificateValid)
null
is given any will do.attributeCertificateValid
- The attribute certificate validation
time to set.public AttributeCertificateHolder getHolder()
public void setHolder(AttributeCertificateHolder holder)
null
is given any will do.holder
- The holder to set.public AttributeCertificateIssuer getIssuer()
public void setIssuer(AttributeCertificateIssuer issuer)
null
is given any will do.issuer
- The issuer to set.public java.math.BigInteger getSerialNumber()
public void setSerialNumber(java.math.BigInteger serialNumber)
null
is given any will do.serialNumber
- The serialNumber to set.public void addTargetName(GeneralName name)
X509AttributeCertificate
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 addTargetName(byte[] name) throws java.io.IOException
X509AttributeCertificate
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
- a byte array containing the name in ASN.1 DER encoded form of a GeneralNamejava.io.IOException
- if a parsing error occurs.public void setTargetNames(java.util.Collection names) throws java.io.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.java.io.IOException
- if a parsing error occurs.addTargetName(byte[])
,
addTargetName(GeneralName)
public java.util.Collection getTargetNames()
GeneralName
objects.
The returned collection is immutable.
setTargetNames(Collection)
public void addTargetGroup(GeneralName group)
X509AttributeCertificate
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 addTargetGroup(byte[] name) throws java.io.IOException
X509AttributeCertificate
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.
name
- a byte array containing the group in ASN.1 DER encoded form of a GeneralNamejava.io.IOException
- if a parsing error occurs.public void setTargetGroups(java.util.Collection names) throws java.io.IOException
null
is
given any will do.
The collection consists of GeneralName
objects or byte[]
names
- A collection of target groups.java.io.IOException
- if a parsing error occurs.addTargetGroup(byte[])
,
addTargetGroup(GeneralName)
public java.util.Collection getTargetGroups()
GeneralName
objects.
The returned collection is immutable.
setTargetGroups(Collection)