Class X509AttributeCertStoreSelector
Selector like implementation to select
attribute certificates from a given set of criteria.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetGroup(byte[] name) Deprecated.Adds a target group criterion for the attribute certificate to the target information extension criteria.voidaddTargetGroup(GeneralName group) Deprecated.Adds a target group criterion for the attribute certificate to the target information extension criteria.voidaddTargetName(byte[] name) Deprecated.Adds a target name criterion for the attribute certificate to the target information extension criteria.voidaddTargetName(GeneralName name) Deprecated.Adds a target name criterion for the attribute certificate to the target information extension criteria.clone()Deprecated.Returns a clone of this object.Deprecated.Returns the attribute certificate which must be matched.Deprecated.Get the criteria for the validity.Deprecated.Gets the holder.Deprecated.Returns the issuer criterion.Deprecated.Gets the serial number the attribute certificate must have.Deprecated.Gets the target groups.Deprecated.Gets the target names.booleanDeprecated.Decides if the given attribute certificate should be selected.voidsetAttributeCert(X509AttributeCertificate attributeCert) Deprecated.Set the attribute certificate to be matched.voidsetAttributeCertificateValid(Date attributeCertificateValid) Deprecated.Set the time, when the certificate must be valid.voidsetHolder(AttributeCertificateHolder holder) Deprecated.Sets the holder.voidsetIssuer(AttributeCertificateIssuer issuer) Deprecated.Sets the issuer the attribute certificate must have.voidsetSerialNumber(BigInteger serialNumber) Deprecated.Sets the serial number the attribute certificate must have.voidsetTargetGroups(Collection names) Deprecated.Adds a collection with target groups criteria.voidsetTargetNames(Collection names) Deprecated.Adds a collection with target names criteria.
-
Constructor Details
-
X509AttributeCertStoreSelector
public X509AttributeCertStoreSelector()Deprecated.
-
-
Method Details
-
match
Deprecated.Decides if the given attribute certificate should be selected. -
clone
Deprecated.Returns a clone of this object. -
getAttributeCert
Deprecated.Returns the attribute certificate which must be matched.- Returns:
- Returns the attribute certificate.
-
setAttributeCert
Deprecated.Set the attribute certificate to be matched. Ifnullis given any will do.- Parameters:
attributeCert- The attribute certificate to set.
-
getAttributeCertificateValid
Deprecated.Get the criteria for the validity.- Returns:
- Returns the attributeCertificateValid.
-
setAttributeCertificateValid
Deprecated.Set the time, when the certificate must be valid. Ifnullis given any will do.- Parameters:
attributeCertificateValid- The attribute certificate validation time to set.
-
getHolder
Deprecated.Gets the holder.- Returns:
- Returns the holder.
-
setHolder
Deprecated.Sets the holder. Ifnullis given any will do.- Parameters:
holder- The holder to set.
-
getIssuer
Deprecated.Returns the issuer criterion.- Returns:
- Returns the issuer.
-
setIssuer
Deprecated.Sets the issuer the attribute certificate must have. Ifnullis given any will do.- Parameters:
issuer- The issuer to set.
-
getSerialNumber
Deprecated.Gets the serial number the attribute certificate must have.- Returns:
- Returns the serialNumber.
-
setSerialNumber
Deprecated.Sets the serial number the attribute certificate must have. Ifnullis given any will do.- Parameters:
serialNumber- The serialNumber to set.
-
addTargetName
Deprecated.Adds a target name criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificatemust 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
Deprecated.Adds a target name criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificatemust 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
Deprecated.Adds a collection with target names criteria. Ifnullis 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:
-
getTargetNames
Deprecated.Gets the target names. The collection consists ofGeneralNameobjects.The returned collection is immutable.
- Returns:
- The collection of target names
- See Also:
-
addTargetGroup
Deprecated.Adds a target group criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificatemust 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
Deprecated.Adds a target group criterion for the attribute certificate to the target information extension criteria. TheX509AttributeCertificatemust 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
Deprecated.Adds a collection with target groups criteria. Ifnullis given any will do.The collection consists of
GeneralNameobjects orbyte[]representing DER encoded GeneralNames.- Parameters:
names- A collection of target groups.- Throws:
IOException- if a parsing error occurs.- See Also:
-
getTargetGroups
Deprecated.Gets the target groups. The collection consists ofGeneralNameobjects.The returned collection is immutable.
- Returns:
- The collection of target groups.
- See Also:
-