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