org.bouncycastle.jce.provider
Class X509StoreLDAPCerts
public class X509StoreLDAPCerts
A SPI implementation of Bouncy Castle X509Store
for getting
certificates form a LDAP directory.
Collection | engineGetMatches(org.bouncycastle.util.Selector selector) - Returns a collection of matching certificates from the LDAP location.
|
void | engineInit(X509StoreParameters params) - Initializes this LDAP cert store implementation.
|
X509StoreLDAPCerts
public X509StoreLDAPCerts()
engineGetMatches
public Collection engineGetMatches(org.bouncycastle.util.Selector selector)
throws org.bouncycastle.util.StoreException
Returns a collection of matching certificates from the LDAP location.
The selector must be a of type
X509CertStoreSelector
. If
it is not an empty collection is returned.
The implementation searches only for CA certificates, if the method
java.security.cert.X509CertSelector.getBasicConstraints()
is
greater or equal to 0. If it is -2 only end certificates are searched.
The subject and the serial number for end certificates should be
reasonable criterias for a selector.
- engineGetMatches in interface X509StoreSpi
selector
- The selector to use for finding.
- A collection with the matches.
org.bouncycastle.util.StoreException
- if an exception occurs while searching.