Package org.bouncycastle.jce.provider
Class X509StoreLDAPCertPairs
- java.lang.Object
-
- org.bouncycastle.x509.X509StoreSpi
-
- org.bouncycastle.jce.provider.X509StoreLDAPCertPairs
-
public class X509StoreLDAPCertPairs extends org.bouncycastle.x509.X509StoreSpi
A SPI implementation of Bouncy CastleX509Store
for getting cross certificates pairs from an LDAP directory.- See Also:
X509Store
-
-
Constructor Summary
Constructors Constructor Description X509StoreLDAPCertPairs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection
engineGetMatches(Selector selector)
Returns a collection of matching cross certificate pairs from the LDAP location.void
engineInit(org.bouncycastle.x509.X509StoreParameters parameters)
Initializes this LDAP cross certificate pair store implementation.
-
-
-
Method Detail
-
engineInit
public void engineInit(org.bouncycastle.x509.X509StoreParameters parameters)
Initializes this LDAP cross certificate pair store implementation.- Specified by:
engineInit
in classorg.bouncycastle.x509.X509StoreSpi
- Parameters:
parameters
-X509LDAPCertStoreParameters
.- Throws:
java.lang.IllegalArgumentException
- ifparams
is not an instance ofX509LDAPCertStoreParameters
.
-
engineGetMatches
public java.util.Collection engineGetMatches(Selector selector) throws StoreException
Returns a collection of matching cross certificate pairs from the LDAP location.The selector must be a of type
X509CertPairStoreSelector
. If it is not an empty collection is returned.The subject should be a reasonable criteria for a selector.
- Specified by:
engineGetMatches
in 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.
-
-