Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.jce.provider;
 import java.util.Set;
A SPI implementation of Bouncy Castle X509Store for getting attribute certificates from an LDAP directory.

public class X509StoreLDAPAttrCerts extends X509StoreSpi
    private LDAPStoreHelper helper;
    public X509StoreLDAPAttrCerts()

Initializes this LDAP attribute cert store implementation.

parameters X509LDAPCertStoreParameters.
java.lang.IllegalArgumentException if params is not an instance of X509LDAPCertStoreParameters.
    public void engineInit(X509StoreParameters parameters)
        if (!(parameters instanceof X509LDAPCertStoreParameters))
            throw new IllegalArgumentException(
                "Initialization parameters must be an instance of "
                    + X509LDAPCertStoreParameters.class.getName() + ".");
         = new LDAPStoreHelper((X509LDAPCertStoreParameters)parameters);

Returns a collection of matching attribute certificates from the LDAP location.

The selector must be a of type X509AttributeCertStoreSelector. If it is not an empty collection is returned.

The subject and the serial number should be reasonable criterias for a selector.

selector The selector to use for finding.
A collection with the matches.
org.bouncycastle.util.StoreException if an exception occurs while searching.
    public Collection engineGetMatches(Selector selectorthrows StoreException
        if (!(selector instanceof X509AttributeCertStoreSelector))
            return .;
        X509AttributeCertStoreSelector xselector = (X509AttributeCertStoreSelector)selector;
        Set set = new HashSet();
        return set;
New to GrepCode? Check out our FAQ X