public class CapiSearchFilter extends java.lang.Object implements CapiCertFilter
CapiCertFilter that allows multiple
CapiCertFilter objects to be combined together to form a filter.
This object is used by CapiIdentities.findIdentities(CapiCertFilter) to
find acceptable certificates that will be used to find identities in CAPI. To
determine whether a certificate is acceptable, the acceptCertificate method
simply iterates through the list of supplied CapiCertFilter and calls the
acceptCertificate() on each CapiCertFilter. If any of the filters reject the
certificate, this method returns false. It is essentially a logical AND
operation of CapiCertFilter objects.
| Constructor and Description |
|---|
CapiSearchFilter(CapiCertFilter[] certFilters)
Take an array of
CapiCertFilter which are used
to determine whether the certificate is acceptable. |
CapiSearchFilter(java.util.List<CapiCertFilter> certFilters)
Takes a List of CapiCertFilter objects that are used
to determine whether the certificate is acceptable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptCertificate(CertContext certificate,
CertStore certStore)
This method simply iterates through the list of supplied
CapiCertFilter and calls the acceptCertificate() on each.
|
public CapiSearchFilter(java.util.List<CapiCertFilter> certFilters)
certFilters - a List of CapiCertFilterpublic CapiSearchFilter(CapiCertFilter[] certFilters)
CapiCertFilter which are used
to determine whether the certificate is acceptable.certFilters - The array of CapiCertFilterpublic boolean acceptCertificate(CertContext certificate, CertStore certStore)
acceptCertificate in interface CapiCertFiltercertificate - the certificate which will be run through
the defined CapiCertFiltercertStore - The CertStore that was used to retrieve the certificate