Top Description Fields Constructors Methods
org.bouncycastle.jce.provider

public Class X509StoreLDAPCerts

extends X509StoreSpi
Class Inheritance
Imports
java.util.Collection, .Collections, .HashSet, .Iterator, .Set, org.bouncycastle.jce.X509LDAPCertStoreParameters, org.bouncycastle.util.Selector, .StoreException, org.bouncycastle.x509.X509CertPairStoreSelector, .X509CertStoreSelector, .X509CertificatePair, .X509StoreParameters, .X509StoreSpi, org.bouncycastle.x509.util.LDAPStoreHelper

A SPI implementation of Bouncy Castle X509Store for getting certificates form a LDAP directory.
See Also
org.bouncycastle.x509.X509Store

Field Summary

Modifier and TypeField and Description
private LDAPStoreHelper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Collection<E>

Returns:

A collection with the matches.
engineGetMatches
(Selector<T>
The selector to use for finding.
selector
)

Implements abstract org.bouncycastle.x509.X509StoreSpi.engineGetMatches.

Returns a collection of matching certificates from the LDAP location.

public void
engineInit(X509StoreParameters
X509LDAPCertStoreParameters.
params
)

Implements abstract org.bouncycastle.x509.X509StoreSpi.engineInit.

Initializes this LDAP cert store implementation.

private Collection<E>
getCertificatesFromCrossCertificatePairs(X509CertStoreSelector xselector)
References Deprecated X509CertStoreSelector is deprecated or references (maybe indirectly) at least one deprecated element.

Field Detail

helperback to summary
private LDAPStoreHelper helper

Constructor Detail

X509StoreLDAPCertsback to summary
public X509StoreLDAPCerts()

Method Detail

engineGetMatchesback to summary
public Collection<E> engineGetMatches(Selector<T> selector) throws StoreException

Implements abstract org.bouncycastle.x509.X509StoreSpi.engineGetMatches.

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.

Parameters
selector:Selector<T>

The selector to use for finding.

Returns:Collection<E>

A collection with the matches.

Exceptions
StoreException:
if an exception occurs while searching.
engineInitback to summary
public void engineInit(X509StoreParameters params)

Implements abstract org.bouncycastle.x509.X509StoreSpi.engineInit.

Initializes this LDAP cert store implementation.

Parameters
params:X509StoreParameters

X509LDAPCertStoreParameters.

Exceptions
IllegalArgumentException:
if params is not an instance of X509LDAPCertStoreParameters.
getCertificatesFromCrossCertificatePairsback to summary
private Collection<E> getCertificatesFromCrossCertificatePairs(X509CertStoreSelector xselector) throws StoreException

References Deprecated

X509CertStoreSelector is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.