Class X509AttributeCertStoreSelector
- java.lang.Object
-
- org.bouncycastle.x509.X509AttributeCertStoreSelector
-
public class X509AttributeCertStoreSelector extends Object implements Selector
Deprecated.use org.bouncycastle.cert.X509AttributeCertificateSelector and org.bouncycastle.cert.X509AttributeCertificateSelectorBuilder.This class is anSelector
like implementation to select attribute certificates from a given set of criteria.- See Also:
X509AttributeCertificate
,X509Store
-
-
Constructor Summary
Constructors Constructor Description X509AttributeCertStoreSelector()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.Object
clone()
Deprecated.Returns a clone of this object.X509AttributeCertificate
getAttributeCert()
Deprecated.Returns the attribute certificate which must be matched.Date
getAttributeCertificateValid()
Deprecated.Get the criteria for the validity.AttributeCertificateHolder
getHolder()
Deprecated.Gets the holder.AttributeCertificateIssuer
getIssuer()
Deprecated.Returns the issuer criterion.BigInteger
getSerialNumber()
Deprecated.Gets the serial number the attribute certificate must have.Collection
getTargetGroups()
Deprecated.Gets the target groups.Collection
getTargetNames()
Deprecated.Gets the target names.boolean
match(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(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(BigInteger serialNumber)
Deprecated.Sets the serial number the attribute certificate must have.void
setTargetGroups(Collection names)
Deprecated.Adds a collection with target groups criteria.void
setTargetNames(Collection names)
Deprecated.Adds a collection with target names criteria.
-
-
-
Method Detail
-
match
public boolean match(Object obj)
Deprecated.Decides if the given attribute certificate should be selected.
-
clone
public Object clone()
Deprecated.Returns a clone of this object.
-
getAttributeCert
public X509AttributeCertificate getAttributeCert()
Deprecated.Returns the attribute certificate which must be matched.- Returns:
- Returns the attribute certificate.
-
setAttributeCert
public void setAttributeCert(X509AttributeCertificate attributeCert)
Deprecated.Set the attribute certificate to be matched. Ifnull
is given any will do.- Parameters:
attributeCert
- The attribute certificate to set.
-
getAttributeCertificateValid
public Date getAttributeCertificateValid()
Deprecated.Get the criteria for the validity.- Returns:
- Returns the attributeCertificateValid.
-
setAttributeCertificateValid
public void setAttributeCertificateValid(Date attributeCertificateValid)
Deprecated.Set the time, when the certificate must be valid. Ifnull
is given any will do.- Parameters:
attributeCertificateValid
- The attribute certificate validation time to set.
-
getHolder
public AttributeCertificateHolder getHolder()
Deprecated.Gets the holder.- Returns:
- Returns the holder.
-
setHolder
public void setHolder(AttributeCertificateHolder holder)
Deprecated.Sets the holder. Ifnull
is given any will do.- Parameters:
holder
- The holder to set.
-
getIssuer
public AttributeCertificateIssuer getIssuer()
Deprecated.Returns the issuer criterion.- Returns:
- Returns the issuer.
-
setIssuer
public void setIssuer(AttributeCertificateIssuer issuer)
Deprecated.Sets the issuer the attribute certificate must have. Ifnull
is given any will do.- Parameters:
issuer
- The issuer to set.
-
getSerialNumber
public BigInteger getSerialNumber()
Deprecated.Gets the serial number the attribute certificate must have.- Returns:
- Returns the serialNumber.
-
setSerialNumber
public void setSerialNumber(BigInteger serialNumber)
Deprecated.Sets the serial number the attribute certificate must have. Ifnull
is given any will do.- Parameters:
serialNumber
- The serialNumber to set.
-
addTargetName
public void addTargetName(GeneralName name)
Deprecated.Adds a target name criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificate
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
- The name as a GeneralName (notnull
)
-
addTargetName
public void addTargetName(byte[] name) throws IOException
Deprecated.Adds a target name criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificate
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
- a byte array containing the name in ASN.1 DER encoded form of a GeneralName- Throws:
IOException
- if a parsing error occurs.
-
setTargetNames
public void setTargetNames(Collection names) throws IOException
Deprecated.Adds a collection with target names criteria. Ifnull
is given any will do.The collection consists of either GeneralName objects or byte[] arrays representing DER encoded GeneralName structures.
- Parameters:
names
- A collection of target names.- Throws:
IOException
- if a parsing error occurs.- See Also:
addTargetName(byte[])
,addTargetName(GeneralName)
-
getTargetNames
public Collection getTargetNames()
Deprecated.Gets the target names. The collection consists ofGeneralName
objects.The returned collection is immutable.
- Returns:
- The collection of target names
- See Also:
setTargetNames(Collection)
-
addTargetGroup
public void addTargetGroup(GeneralName group)
Deprecated.Adds a target group criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificate
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
- The group as GeneralName form (notnull
)
-
addTargetGroup
public void addTargetGroup(byte[] name) throws IOException
Deprecated.Adds a target group criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificate
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:
name
- a byte array containing the group in ASN.1 DER encoded form of a GeneralName- Throws:
IOException
- if a parsing error occurs.
-
setTargetGroups
public void setTargetGroups(Collection names) throws IOException
Deprecated.Adds a collection with target groups criteria. Ifnull
is given any will do.The collection consists of
GeneralName
objects orbyte[]
representing DER encoded GeneralNames.- Parameters:
names
- A collection of target groups.- Throws:
IOException
- if a parsing error occurs.- See Also:
addTargetGroup(byte[])
,addTargetGroup(GeneralName)
-
getTargetGroups
public Collection getTargetGroups()
Deprecated.Gets the target groups. The collection consists ofGeneralName
objects.The returned collection is immutable.
- Returns:
- The collection of target groups.
- See Also:
setTargetGroups(Collection)
-
-