Package org.bouncycastle.jce.provider
Class X509StoreLDAPCerts
- java.lang.Object
-
- org.bouncycastle.x509.X509StoreSpi
-
- org.bouncycastle.jce.provider.X509StoreLDAPCerts
-
public class X509StoreLDAPCerts extends org.bouncycastle.x509.X509StoreSpiA SPI implementation of Bouncy CastleX509Storefor getting certificates form a LDAP directory.- See Also:
X509Store
-
-
Constructor Summary
Constructors Constructor Description X509StoreLDAPCerts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.CollectionengineGetMatches(Selector selector)Returns a collection of matching certificates from the LDAP location.voidengineInit(org.bouncycastle.x509.X509StoreParameters params)Initializes this LDAP cert store implementation.
-
-
-
Method Detail
-
engineInit
public void engineInit(org.bouncycastle.x509.X509StoreParameters params)
Initializes this LDAP cert store implementation.- Specified by:
engineInitin classorg.bouncycastle.x509.X509StoreSpi- Parameters:
params-X509LDAPCertStoreParameters.- Throws:
java.lang.IllegalArgumentException- ifparamsis not an instance ofX509LDAPCertStoreParameters.
-
engineGetMatches
public java.util.Collection engineGetMatches(Selector selector) throws 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
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.
- Specified by:
engineGetMatchesin classorg.bouncycastle.x509.X509StoreSpi- Parameters:
selector- The selector to use for finding.- Returns:
- A collection with the matches.
- Throws:
StoreException- if an exception occurs while searching.
-
-