package org.bouncycastle.jce;

import org.bouncycastle.x509.X509StoreParameters;

import java.security.cert.CertStoreParameters;
import java.security.cert.LDAPCertStoreParameters;

An expanded set of parameters for an LDAPCertStore
/** * An expanded set of parameters for an LDAPCertStore */
public class X509LDAPCertStoreParameters implements X509StoreParameters, CertStoreParameters { private String ldapURL; private String baseDN; // LDAP attributes, where data is stored private String userCertificateAttribute; private String cACertificateAttribute; private String crossCertificateAttribute; private String certificateRevocationListAttribute; private String deltaRevocationListAttribute; private String authorityRevocationListAttribute; private String attributeCertificateAttributeAttribute; private String aACertificateAttribute; private String attributeDescriptorCertificateAttribute; private String attributeCertificateRevocationListAttribute; private String attributeAuthorityRevocationListAttribute; // LDAP attributes with which data can be found private String ldapUserCertificateAttributeName; private String ldapCACertificateAttributeName; private String ldapCrossCertificateAttributeName; private String ldapCertificateRevocationListAttributeName; private String ldapDeltaRevocationListAttributeName; private String ldapAuthorityRevocationListAttributeName; private String ldapAttributeCertificateAttributeAttributeName; private String ldapAACertificateAttributeName; private String ldapAttributeDescriptorCertificateAttributeName; private String ldapAttributeCertificateRevocationListAttributeName; private String ldapAttributeAuthorityRevocationListAttributeName; // certificates and CRLs subject or issuer DN attributes, which must be // matched against ldap attribute names private String userCertificateSubjectAttributeName; private String cACertificateSubjectAttributeName; private String crossCertificateSubjectAttributeName; private String certificateRevocationListIssuerAttributeName; private String deltaRevocationListIssuerAttributeName; private String authorityRevocationListIssuerAttributeName; private String attributeCertificateAttributeSubjectAttributeName; private String aACertificateSubjectAttributeName; private String attributeDescriptorCertificateSubjectAttributeName; private String attributeCertificateRevocationListIssuerAttributeName; private String attributeAuthorityRevocationListIssuerAttributeName; private String searchForSerialNumberIn; public static class Builder { private String ldapURL; private String baseDN; // LDAP attributes, where data is stored private String userCertificateAttribute; private String cACertificateAttribute; private String crossCertificateAttribute; private String certificateRevocationListAttribute; private String deltaRevocationListAttribute; private String authorityRevocationListAttribute; private String attributeCertificateAttributeAttribute; private String aACertificateAttribute; private String attributeDescriptorCertificateAttribute; private String attributeCertificateRevocationListAttribute; private String attributeAuthorityRevocationListAttribute; // LDAP attributes with which data can be found private String ldapUserCertificateAttributeName; private String ldapCACertificateAttributeName; private String ldapCrossCertificateAttributeName; private String ldapCertificateRevocationListAttributeName; private String ldapDeltaRevocationListAttributeName; private String ldapAuthorityRevocationListAttributeName; private String ldapAttributeCertificateAttributeAttributeName; private String ldapAACertificateAttributeName; private String ldapAttributeDescriptorCertificateAttributeName; private String ldapAttributeCertificateRevocationListAttributeName; private String ldapAttributeAuthorityRevocationListAttributeName; // certificates and CRLs subject or issuer DN attributes, which must be // matched against ldap attribute names private String userCertificateSubjectAttributeName; private String cACertificateSubjectAttributeName; private String crossCertificateSubjectAttributeName; private String certificateRevocationListIssuerAttributeName; private String deltaRevocationListIssuerAttributeName; private String authorityRevocationListIssuerAttributeName; private String attributeCertificateAttributeSubjectAttributeName; private String aACertificateSubjectAttributeName; private String attributeDescriptorCertificateSubjectAttributeName; private String attributeCertificateRevocationListIssuerAttributeName; private String attributeAuthorityRevocationListIssuerAttributeName; private String searchForSerialNumberIn; public Builder() { this("ldap://localhost:389", ""); } public Builder(String ldapURL, String baseDN) { this.ldapURL = ldapURL; if (baseDN == null) { this.baseDN = ""; } else { this.baseDN = baseDN; } this.userCertificateAttribute = "userCertificate"; this.cACertificateAttribute = "cACertificate"; this.crossCertificateAttribute = "crossCertificatePair"; this.certificateRevocationListAttribute = "certificateRevocationList"; this.deltaRevocationListAttribute = "deltaRevocationList"; this.authorityRevocationListAttribute = "authorityRevocationList"; this.attributeCertificateAttributeAttribute = "attributeCertificateAttribute"; this.aACertificateAttribute = "aACertificate"; this.attributeDescriptorCertificateAttribute = "attributeDescriptorCertificate"; this.attributeCertificateRevocationListAttribute = "attributeCertificateRevocationList"; this.attributeAuthorityRevocationListAttribute = "attributeAuthorityRevocationList"; this.ldapUserCertificateAttributeName = "cn"; this.ldapCACertificateAttributeName = "cn ou o"; this.ldapCrossCertificateAttributeName = "cn ou o"; this.ldapCertificateRevocationListAttributeName = "cn ou o"; this.ldapDeltaRevocationListAttributeName = "cn ou o"; this.ldapAuthorityRevocationListAttributeName = "cn ou o"; this.ldapAttributeCertificateAttributeAttributeName = "cn"; this.ldapAACertificateAttributeName = "cn o ou"; this.ldapAttributeDescriptorCertificateAttributeName = "cn o ou"; this.ldapAttributeCertificateRevocationListAttributeName = "cn o ou"; this.ldapAttributeAuthorityRevocationListAttributeName = "cn o ou"; this.userCertificateSubjectAttributeName = "cn"; this.cACertificateSubjectAttributeName = "o ou"; this.crossCertificateSubjectAttributeName = "o ou"; this.certificateRevocationListIssuerAttributeName = "o ou"; this.deltaRevocationListIssuerAttributeName = "o ou"; this.authorityRevocationListIssuerAttributeName = "o ou"; this.attributeCertificateAttributeSubjectAttributeName = "cn"; this.aACertificateSubjectAttributeName = "o ou"; this.attributeDescriptorCertificateSubjectAttributeName = "o ou"; this.attributeCertificateRevocationListIssuerAttributeName = "o ou"; this.attributeAuthorityRevocationListIssuerAttributeName = "o ou"; this.searchForSerialNumberIn = "uid serialNumber cn"; }
Params:
  • userCertificateAttribute – Attribute name(s) in the LDAP directory where end certificates are stored. Separated by space. Defaults to "userCertificate" if null.
Throws:
Returns:the builder
/** * @param userCertificateAttribute Attribute name(s) in the LDAP directory where end certificates * are stored. Separated by space. Defaults to "userCertificate" * if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setUserCertificateAttribute(String userCertificateAttribute) { this.userCertificateAttribute = userCertificateAttribute; return this; }
Params:
  • cACertificateAttribute – Attribute name(s) in the LDAP directory where CA certificates are stored. Separated by space. Defaults to "cACertificate" if null.
Throws:
Returns:the builder
/** * @param cACertificateAttribute Attribute name(s) in the LDAP directory where CA certificates * are stored. Separated by space. Defaults to "cACertificate" if * <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setCACertificateAttribute(String cACertificateAttribute) { this.cACertificateAttribute = cACertificateAttribute; return this; }
Params:
  • crossCertificateAttribute – Attribute name(s), where the cross certificates are stored. Separated by space. Defaults to "crossCertificatePair" if null
Throws:
Returns:the builder
/** * @param crossCertificateAttribute Attribute name(s), where the cross certificates are stored. * Separated by space. Defaults to "crossCertificatePair" if * <code>null</code> * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setCrossCertificateAttribute(String crossCertificateAttribute) { this.crossCertificateAttribute = crossCertificateAttribute; return this; }
Params:
  • certificateRevocationListAttribute – Attribute name(s) in the LDAP directory where CRLs are stored. Separated by space. Defaults to "certificateRevocationList" if null.
Throws:
Returns:the builder
/** * @param certificateRevocationListAttribute * Attribute name(s) in the LDAP directory where CRLs are stored. * Separated by space. Defaults to "certificateRevocationList" if * <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setCertificateRevocationListAttribute(String certificateRevocationListAttribute) { this.certificateRevocationListAttribute = certificateRevocationListAttribute; return this; }
Params:
  • deltaRevocationListAttribute – Attribute name(s) in the LDAP directory where delta RLs are stored. Separated by space. Defaults to "deltaRevocationList" if null.
Throws:
Returns:the builder
/** * @param deltaRevocationListAttribute Attribute name(s) in the LDAP directory where delta RLs are * stored. Separated by space. Defaults to "deltaRevocationList" * if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setDeltaRevocationListAttribute(String deltaRevocationListAttribute) { this.deltaRevocationListAttribute = deltaRevocationListAttribute; return this; }
Params:
  • authorityRevocationListAttribute – Attribute name(s) in the LDAP directory where CRLs for authorities are stored. Separated by space. Defaults to "authorityRevocationList" if null.
Throws:
Returns:the builder
/** * @param authorityRevocationListAttribute * Attribute name(s) in the LDAP directory where CRLs for * authorities are stored. Separated by space. Defaults to * "authorityRevocationList" if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAuthorityRevocationListAttribute(String authorityRevocationListAttribute) { this.authorityRevocationListAttribute = authorityRevocationListAttribute; return this; }
Params:
  • attributeCertificateAttributeAttribute – Attribute name(s) in the LDAP directory where end attribute certificates are stored. Separated by space. Defaults to "attributeCertificateAttribute" if null.
Throws:
Returns:the builder
/** * @param attributeCertificateAttributeAttribute * Attribute name(s) in the LDAP directory where end attribute * certificates are stored. Separated by space. Defaults to * "attributeCertificateAttribute" if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeCertificateAttributeAttribute(String attributeCertificateAttributeAttribute) { this.attributeCertificateAttributeAttribute = attributeCertificateAttributeAttribute; return this; }
Params:
  • aACertificateAttribute – Attribute name(s) in the LDAP directory where attribute certificates for attribute authorities are stored. Separated by space. Defaults to "aACertificate" if null.
Throws:
Returns:the builder
/** * @param aACertificateAttribute Attribute name(s) in the LDAP directory where attribute * certificates for attribute authorities are stored. Separated * by space. Defaults to "aACertificate" if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAACertificateAttribute(String aACertificateAttribute) { this.aACertificateAttribute = aACertificateAttribute; return this; }
Params:
  • attributeDescriptorCertificateAttribute – Attribute name(s) in the LDAP directory where self signed attribute certificates for attribute authorities are stored. Separated by space. Defaults to "attributeDescriptorCertificate" if null.
Throws:
Returns:the builder
/** * @param attributeDescriptorCertificateAttribute * Attribute name(s) in the LDAP directory where self signed * attribute certificates for attribute authorities are stored. * Separated by space. Defaults to * "attributeDescriptorCertificate" if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeDescriptorCertificateAttribute(String attributeDescriptorCertificateAttribute) { this.attributeDescriptorCertificateAttribute = attributeDescriptorCertificateAttribute; return this; }
Params:
  • attributeCertificateRevocationListAttribute – Attribute name(s) in the LDAP directory where CRLs for attribute certificates are stored. Separated by space. Defaults to "attributeCertificateRevocationList" if null.
Throws:
Returns:the builder
/** * @param attributeCertificateRevocationListAttribute * Attribute name(s) in the LDAP directory where CRLs for * attribute certificates are stored. Separated by space. * Defaults to "attributeCertificateRevocationList" if * <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeCertificateRevocationListAttribute(String attributeCertificateRevocationListAttribute) { this.attributeCertificateRevocationListAttribute = attributeCertificateRevocationListAttribute; return this; }
Params:
  • attributeAuthorityRevocationListAttribute – Attribute name(s) in the LDAP directory where RLs for attribute authority attribute certificates are stored. Separated by space. Defaults to "attributeAuthorityRevocationList" if null.
Throws:
Returns:the builder
/** * @param attributeAuthorityRevocationListAttribute * Attribute name(s) in the LDAP directory where RLs for * attribute authority attribute certificates are stored. * Separated by space. Defaults to * "attributeAuthorityRevocationList" if <code>null</code>. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeAuthorityRevocationListAttribute(String attributeAuthorityRevocationListAttribute) { this.attributeAuthorityRevocationListAttribute = attributeAuthorityRevocationListAttribute; return this; }
Params:
  • ldapUserCertificateAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified userCertificateSubjectAttributeName. E.g. if "cn" is used to put information about the subject for end certificates, then specify "cn".
Throws:
Returns:the builder
/** * @param ldapUserCertificateAttributeName * The attribute name(s) in the LDAP directory where to search * for the attribute value of the specified * <code>userCertificateSubjectAttributeName</code>. E.g. if * "cn" is used to put information about the subject for end * certificates, then specify "cn". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapUserCertificateAttributeName(String ldapUserCertificateAttributeName) { this.ldapUserCertificateAttributeName = ldapUserCertificateAttributeName; return this; }
Params:
  • ldapCACertificateAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified cACertificateSubjectAttributeName. E.g. if "ou" is used to put information about the subject for CA certificates, then specify "ou".
Throws:
Returns:the builder
/** * @param ldapCACertificateAttributeName The attribute name(s) in the LDAP directory where to search * for the attribute value of the specified * <code>cACertificateSubjectAttributeName</code>. E.g. if * "ou" is used to put information about the subject for CA * certificates, then specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapCACertificateAttributeName(String ldapCACertificateAttributeName) { this.ldapCACertificateAttributeName = ldapCACertificateAttributeName; return this; }
Params:
  • ldapCrossCertificateAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified crossCertificateSubjectAttributeName. E.g. if "o" is used to put information about the subject for cross certificates, then specify "o".
Throws:
Returns:the builder
/** * @param ldapCrossCertificateAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>crossCertificateSubjectAttributeName</code>. E.g. if * "o" is used to put information about the subject for cross * certificates, then specify "o". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapCrossCertificateAttributeName(String ldapCrossCertificateAttributeName) { this.ldapCrossCertificateAttributeName = ldapCrossCertificateAttributeName; return this; }
Params:
  • ldapCertificateRevocationListAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified certificateRevocationListIssuerAttributeName. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".
Throws:
Returns:the builder
/** * @param ldapCertificateRevocationListAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>certificateRevocationListIssuerAttributeName</code>. * E.g. if "ou" is used to put information about the issuer of * CRLs, specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapCertificateRevocationListAttributeName(String ldapCertificateRevocationListAttributeName) { this.ldapCertificateRevocationListAttributeName = ldapCertificateRevocationListAttributeName; return this; }
Params:
  • ldapDeltaRevocationListAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified deltaRevocationListIssuerAttributeName. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".
Throws:
Returns:the builder
/** * @param ldapDeltaRevocationListAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>deltaRevocationListIssuerAttributeName</code>. E.g. * if "ou" is used to put information about the issuer of CRLs, * specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapDeltaRevocationListAttributeName(String ldapDeltaRevocationListAttributeName) { this.ldapDeltaRevocationListAttributeName = ldapDeltaRevocationListAttributeName; return this; }
Params:
  • ldapAuthorityRevocationListAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified authorityRevocationListIssuerAttributeName. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".
Throws:
Returns:the builder
/** * @param ldapAuthorityRevocationListAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>authorityRevocationListIssuerAttributeName</code>. * E.g. if "ou" is used to put information about the issuer of * CRLs, specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapAuthorityRevocationListAttributeName(String ldapAuthorityRevocationListAttributeName) { this.ldapAuthorityRevocationListAttributeName = ldapAuthorityRevocationListAttributeName; return this; }
Params:
  • ldapAttributeCertificateAttributeAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified attributeCertificateAttributeSubjectAttributeName. E.g. if "cn" is used to put information about the subject of end attribute certificates, specify "cn".
Throws:
Returns:the builder
/** * @param ldapAttributeCertificateAttributeAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>attributeCertificateAttributeSubjectAttributeName</code>. * E.g. if "cn" is used to put information about the subject of * end attribute certificates, specify "cn". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapAttributeCertificateAttributeAttributeName(String ldapAttributeCertificateAttributeAttributeName) { this.ldapAttributeCertificateAttributeAttributeName = ldapAttributeCertificateAttributeAttributeName; return this; }
Params:
  • ldapAACertificateAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified aACertificateSubjectAttributeName. E.g. if "ou" is used to put information about the subject of attribute authority attribute certificates, specify "ou".
Throws:
Returns:the builder
/** * @param ldapAACertificateAttributeName The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>aACertificateSubjectAttributeName</code>. E.g. if * "ou" is used to put information about the subject of attribute * authority attribute certificates, specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapAACertificateAttributeName(String ldapAACertificateAttributeName) { this.ldapAACertificateAttributeName = ldapAACertificateAttributeName; return this; }
Params:
  • ldapAttributeDescriptorCertificateAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified attributeDescriptorCertificateSubjectAttributeName. E.g. if "o" is used to put information about the subject of self signed attribute authority attribute certificates, specify "o".
Throws:
Returns:the builder
/** * @param ldapAttributeDescriptorCertificateAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>attributeDescriptorCertificateSubjectAttributeName</code>. * E.g. if "o" is used to put information about the subject of * self signed attribute authority attribute certificates, * specify "o". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapAttributeDescriptorCertificateAttributeName(String ldapAttributeDescriptorCertificateAttributeName) { this.ldapAttributeDescriptorCertificateAttributeName = ldapAttributeDescriptorCertificateAttributeName; return this; }
Params:
  • ldapAttributeCertificateRevocationListAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified attributeCertificateRevocationListIssuerAttributeName. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".
Throws:
Returns:the builder
/** * @param ldapAttributeCertificateRevocationListAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>attributeCertificateRevocationListIssuerAttributeName</code>. * E.g. if "ou" is used to put information about the issuer of * CRLs, specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapAttributeCertificateRevocationListAttributeName(String ldapAttributeCertificateRevocationListAttributeName) { this.ldapAttributeCertificateRevocationListAttributeName = ldapAttributeCertificateRevocationListAttributeName; return this; }
Params:
  • ldapAttributeAuthorityRevocationListAttributeName – The attribute name(s) in the LDAP directory where to search for the attribute value of the specified attributeAuthorityRevocationListIssuerAttributeName. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".
Throws:
Returns:the builder
/** * @param ldapAttributeAuthorityRevocationListAttributeName * The attribute name(s) in the LDAP directory where to search for * the attribute value of the specified * <code>attributeAuthorityRevocationListIssuerAttributeName</code>. * E.g. if "ou" is used to put information about the issuer of * CRLs, specify "ou". * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setLdapAttributeAuthorityRevocationListAttributeName(String ldapAttributeAuthorityRevocationListAttributeName) { this.ldapAttributeAuthorityRevocationListAttributeName = ldapAttributeAuthorityRevocationListAttributeName; return this; }
Params:
  • userCertificateSubjectAttributeName – Attribute(s) in the subject of the certificate which is used to be searched in the ldapUserCertificateAttributeName. E.g. the "cn" attribute of the DN could be used.
Throws:
Returns:the builder
/** * @param userCertificateSubjectAttributeName * Attribute(s) in the subject of the certificate which is used * to be searched in the * <code>ldapUserCertificateAttributeName</code>. E.g. the * "cn" attribute of the DN could be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setUserCertificateSubjectAttributeName(String userCertificateSubjectAttributeName) { this.userCertificateSubjectAttributeName = userCertificateSubjectAttributeName; return this; }
Params:
  • cACertificateSubjectAttributeName – Attribute(s) in the subject of the certificate which is used to be searched in the ldapCACertificateAttributeName. E.g. the "ou" attribute of the DN could be used.
Throws:
Returns:the builder
/** * @param cACertificateSubjectAttributeName * Attribute(s) in the subject of the certificate which is used * to be searched in the * <code>ldapCACertificateAttributeName</code>. E.g. the "ou" * attribute of the DN could be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setCACertificateSubjectAttributeName(String cACertificateSubjectAttributeName) { this.cACertificateSubjectAttributeName = cACertificateSubjectAttributeName; return this; }
Params:
  • crossCertificateSubjectAttributeName – Attribute(s) in the subject of the cross certificate which is used to be searched in the ldapCrossCertificateAttributeName. E.g. the "o" attribute of the DN may be appropriate.
Throws:
Returns:the builder
/** * @param crossCertificateSubjectAttributeName * Attribute(s) in the subject of the cross certificate which is * used to be searched in the * <code>ldapCrossCertificateAttributeName</code>. E.g. the * "o" attribute of the DN may be appropriate. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setCrossCertificateSubjectAttributeName(String crossCertificateSubjectAttributeName) { this.crossCertificateSubjectAttributeName = crossCertificateSubjectAttributeName; return this; }
Params:
  • certificateRevocationListIssuerAttributeName – Attribute(s) in the issuer of the CRL which is used to be searched in the ldapCertificateRevocationListAttributeName. E.g. the "o" or "ou" attribute may be used.
Throws:
Returns:the builder
/** * @param certificateRevocationListIssuerAttributeName * Attribute(s) in the issuer of the CRL which is used to be * searched in the * <code>ldapCertificateRevocationListAttributeName</code>. * E.g. the "o" or "ou" attribute may be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setCertificateRevocationListIssuerAttributeName(String certificateRevocationListIssuerAttributeName) { this.certificateRevocationListIssuerAttributeName = certificateRevocationListIssuerAttributeName; return this; }
Params:
  • deltaRevocationListIssuerAttributeName – Attribute(s) in the issuer of the CRL which is used to be searched in the ldapDeltaRevocationListAttributeName. E.g. the "o" or "ou" attribute may be used.
Throws:
Returns:the builder
/** * @param deltaRevocationListIssuerAttributeName * Attribute(s) in the issuer of the CRL which is used to be * searched in the * <code>ldapDeltaRevocationListAttributeName</code>. E.g. the * "o" or "ou" attribute may be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setDeltaRevocationListIssuerAttributeName(String deltaRevocationListIssuerAttributeName) { this.deltaRevocationListIssuerAttributeName = deltaRevocationListIssuerAttributeName; return this; }
Params:
  • authorityRevocationListIssuerAttributeName – Attribute(s) in the issuer of the CRL which is used to be searched in the ldapAuthorityRevocationListAttributeName. E.g. the "o" or "ou" attribute may be used.
Throws:
Returns:the builder
/** * @param authorityRevocationListIssuerAttributeName * Attribute(s) in the issuer of the CRL which is used to be * searched in the * <code>ldapAuthorityRevocationListAttributeName</code>. E.g. * the "o" or "ou" attribute may be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAuthorityRevocationListIssuerAttributeName(String authorityRevocationListIssuerAttributeName) { this.authorityRevocationListIssuerAttributeName = authorityRevocationListIssuerAttributeName; return this; }
Params:
  • attributeCertificateAttributeSubjectAttributeName – Attribute(s) in the subject of the attribute certificate which is used to be searched in the ldapAttributeCertificateAttributeAttributeName. E.g. the "cn" attribute of the DN could be used.
Throws:
Returns:the builder
/** * @param attributeCertificateAttributeSubjectAttributeName * Attribute(s) in the subject of the attribute certificate which * is used to be searched in the * <code>ldapAttributeCertificateAttributeAttributeName</code>. * E.g. the "cn" attribute of the DN could be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeCertificateAttributeSubjectAttributeName(String attributeCertificateAttributeSubjectAttributeName) { this.attributeCertificateAttributeSubjectAttributeName = attributeCertificateAttributeSubjectAttributeName; return this; }
Params:
  • aACertificateSubjectAttributeName – Attribute(s) in the subject of the attribute certificate which is used to be searched in the ldapAACertificateAttributeName. E.g. the "ou" attribute of the DN could be used.
Throws:
Returns:the builder
/** * @param aACertificateSubjectAttributeName * Attribute(s) in the subject of the attribute certificate which * is used to be searched in the * <code>ldapAACertificateAttributeName</code>. E.g. the "ou" * attribute of the DN could be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAACertificateSubjectAttributeName(String aACertificateSubjectAttributeName) { this.aACertificateSubjectAttributeName = aACertificateSubjectAttributeName; return this; }
Params:
  • attributeDescriptorCertificateSubjectAttributeName – Attribute(s) in the subject of the attribute certificate which is used to be searched in the ldapAttributeDescriptorCertificateAttributeName. E.g. the "o" attribute of the DN could be used.
Throws:
Returns:the builder
/** * @param attributeDescriptorCertificateSubjectAttributeName * Attribute(s) in the subject of the attribute certificate which * is used to be searched in the * <code>ldapAttributeDescriptorCertificateAttributeName</code>. * E.g. the "o" attribute of the DN could be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeDescriptorCertificateSubjectAttributeName(String attributeDescriptorCertificateSubjectAttributeName) { this.attributeDescriptorCertificateSubjectAttributeName = attributeDescriptorCertificateSubjectAttributeName; return this; }
Params:
  • attributeCertificateRevocationListIssuerAttributeName – Attribute(s) in the issuer of the CRL which is used to be searched in the ldapAttributeCertificateRevocationListAttributeName. E.g. the "o" or "ou" attribute may be used certificate is searched in this LDAP attribute.
Throws:
Returns:the builder
/** * @param attributeCertificateRevocationListIssuerAttributeName * Attribute(s) in the issuer of the CRL which is used to be * searched in the * <code>ldapAttributeCertificateRevocationListAttributeName</code>. * E.g. the "o" or "ou" attribute may be used * certificate is searched in this LDAP attribute. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeCertificateRevocationListIssuerAttributeName(String attributeCertificateRevocationListIssuerAttributeName) { this.attributeCertificateRevocationListIssuerAttributeName = attributeCertificateRevocationListIssuerAttributeName; return this; }
Params:
  • attributeAuthorityRevocationListIssuerAttributeName – Anttribute(s) in the issuer of the CRL which is used to be searched in the ldapAttributeAuthorityRevocationListAttributeName. E.g. the "o" or "ou" attribute may be used.
Throws:
Returns:the builder
/** * @param attributeAuthorityRevocationListIssuerAttributeName * Anttribute(s) in the issuer of the CRL which is used to be * searched in the * <code>ldapAttributeAuthorityRevocationListAttributeName</code>. * E.g. the "o" or "ou" attribute may be used. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setAttributeAuthorityRevocationListIssuerAttributeName(String attributeAuthorityRevocationListIssuerAttributeName) { this.attributeAuthorityRevocationListIssuerAttributeName = attributeAuthorityRevocationListIssuerAttributeName; return this; }
Params:
  • searchForSerialNumberIn – If not null the serial number of the certificate is searched in this LDAP attribute.
Throws:
Returns:the builder
/** * * @param searchForSerialNumberIn If not <code>null</code> the serial number of the * certificate is searched in this LDAP attribute. * @throws IllegalArgumentException if a necessary parameter is <code>null</code>. * @return the builder */
public Builder setSearchForSerialNumberIn(String searchForSerialNumberIn) { this.searchForSerialNumberIn = searchForSerialNumberIn; return this; } public X509LDAPCertStoreParameters build() { if (ldapUserCertificateAttributeName == null // migrate to setters || ldapCACertificateAttributeName == null || ldapCrossCertificateAttributeName == null || ldapCertificateRevocationListAttributeName == null || ldapDeltaRevocationListAttributeName == null || ldapAuthorityRevocationListAttributeName == null || ldapAttributeCertificateAttributeAttributeName == null || ldapAACertificateAttributeName == null || ldapAttributeDescriptorCertificateAttributeName == null || ldapAttributeCertificateRevocationListAttributeName == null || ldapAttributeAuthorityRevocationListAttributeName == null || userCertificateSubjectAttributeName == null || cACertificateSubjectAttributeName == null || crossCertificateSubjectAttributeName == null || certificateRevocationListIssuerAttributeName == null || deltaRevocationListIssuerAttributeName == null || authorityRevocationListIssuerAttributeName == null || attributeCertificateAttributeSubjectAttributeName == null || aACertificateSubjectAttributeName == null || attributeDescriptorCertificateSubjectAttributeName == null || attributeCertificateRevocationListIssuerAttributeName == null || attributeAuthorityRevocationListIssuerAttributeName == null) { throw new IllegalArgumentException( "Necessary parameters not specified."); } return new X509LDAPCertStoreParameters(this); } } private X509LDAPCertStoreParameters(Builder builder) { this.ldapURL = builder.ldapURL; this.baseDN = builder.baseDN; this.userCertificateAttribute = builder.userCertificateAttribute; this.cACertificateAttribute = builder.cACertificateAttribute; this.crossCertificateAttribute = builder.crossCertificateAttribute; this.certificateRevocationListAttribute = builder.certificateRevocationListAttribute; this.deltaRevocationListAttribute = builder.deltaRevocationListAttribute; this.authorityRevocationListAttribute = builder.authorityRevocationListAttribute; this.attributeCertificateAttributeAttribute = builder.attributeCertificateAttributeAttribute; this.aACertificateAttribute = builder.aACertificateAttribute; this.attributeDescriptorCertificateAttribute = builder.attributeDescriptorCertificateAttribute; this.attributeCertificateRevocationListAttribute = builder.attributeCertificateRevocationListAttribute; this.attributeAuthorityRevocationListAttribute = builder.attributeAuthorityRevocationListAttribute; this.ldapUserCertificateAttributeName = builder.ldapUserCertificateAttributeName; this.ldapCACertificateAttributeName = builder.ldapCACertificateAttributeName; this.ldapCrossCertificateAttributeName = builder.ldapCrossCertificateAttributeName; this.ldapCertificateRevocationListAttributeName = builder.ldapCertificateRevocationListAttributeName; this.ldapDeltaRevocationListAttributeName = builder.ldapDeltaRevocationListAttributeName; this.ldapAuthorityRevocationListAttributeName = builder.ldapAuthorityRevocationListAttributeName; this.ldapAttributeCertificateAttributeAttributeName = builder.ldapAttributeCertificateAttributeAttributeName; this.ldapAACertificateAttributeName = builder.ldapAACertificateAttributeName; this.ldapAttributeDescriptorCertificateAttributeName = builder.ldapAttributeDescriptorCertificateAttributeName; this.ldapAttributeCertificateRevocationListAttributeName = builder.ldapAttributeCertificateRevocationListAttributeName; this.ldapAttributeAuthorityRevocationListAttributeName = builder.ldapAttributeAuthorityRevocationListAttributeName; this.userCertificateSubjectAttributeName = builder.userCertificateSubjectAttributeName; this.cACertificateSubjectAttributeName = builder.cACertificateSubjectAttributeName; this.crossCertificateSubjectAttributeName = builder.crossCertificateSubjectAttributeName; this.certificateRevocationListIssuerAttributeName = builder.certificateRevocationListIssuerAttributeName; this.deltaRevocationListIssuerAttributeName = builder.deltaRevocationListIssuerAttributeName; this.authorityRevocationListIssuerAttributeName = builder.authorityRevocationListIssuerAttributeName; this.attributeCertificateAttributeSubjectAttributeName = builder.attributeCertificateAttributeSubjectAttributeName; this.aACertificateSubjectAttributeName = builder.aACertificateSubjectAttributeName; this.attributeDescriptorCertificateSubjectAttributeName = builder.attributeDescriptorCertificateSubjectAttributeName; this.attributeCertificateRevocationListIssuerAttributeName = builder.attributeCertificateRevocationListIssuerAttributeName; this.attributeAuthorityRevocationListIssuerAttributeName = builder.attributeAuthorityRevocationListIssuerAttributeName; this.searchForSerialNumberIn = builder.searchForSerialNumberIn; }
Returns a clone of this object.
/** * Returns a clone of this object. */
public Object clone() { return this; } public boolean equal(Object o) { if (o == this) { return true; } if (!(o instanceof X509LDAPCertStoreParameters)) { return false; } X509LDAPCertStoreParameters params = (X509LDAPCertStoreParameters)o; return checkField(ldapURL, params.ldapURL) && checkField(baseDN, params.baseDN) && checkField(userCertificateAttribute, params.userCertificateAttribute) && checkField(cACertificateAttribute, params.cACertificateAttribute) && checkField(crossCertificateAttribute, params.crossCertificateAttribute) && checkField(certificateRevocationListAttribute, params.certificateRevocationListAttribute) && checkField(deltaRevocationListAttribute, params.deltaRevocationListAttribute) && checkField(authorityRevocationListAttribute, params.authorityRevocationListAttribute) && checkField(attributeCertificateAttributeAttribute, params.attributeCertificateAttributeAttribute) && checkField(aACertificateAttribute, params.aACertificateAttribute) && checkField(attributeDescriptorCertificateAttribute, params.attributeDescriptorCertificateAttribute) && checkField(attributeCertificateRevocationListAttribute, params.attributeCertificateRevocationListAttribute) && checkField(attributeAuthorityRevocationListAttribute, params.attributeAuthorityRevocationListAttribute) && checkField(ldapUserCertificateAttributeName, params.ldapUserCertificateAttributeName) && checkField(ldapCACertificateAttributeName, params.ldapCACertificateAttributeName) && checkField(ldapCrossCertificateAttributeName, params.ldapCrossCertificateAttributeName) && checkField(ldapCertificateRevocationListAttributeName, params.ldapCertificateRevocationListAttributeName) && checkField(ldapDeltaRevocationListAttributeName, params.ldapDeltaRevocationListAttributeName) && checkField(ldapAuthorityRevocationListAttributeName, params.ldapAuthorityRevocationListAttributeName) && checkField(ldapAttributeCertificateAttributeAttributeName, params.ldapAttributeCertificateAttributeAttributeName) && checkField(ldapAACertificateAttributeName, params.ldapAACertificateAttributeName) && checkField(ldapAttributeDescriptorCertificateAttributeName, params.ldapAttributeDescriptorCertificateAttributeName) && checkField(ldapAttributeCertificateRevocationListAttributeName, params.ldapAttributeCertificateRevocationListAttributeName) && checkField(ldapAttributeAuthorityRevocationListAttributeName, params.ldapAttributeAuthorityRevocationListAttributeName) && checkField(userCertificateSubjectAttributeName, params.userCertificateSubjectAttributeName) && checkField(cACertificateSubjectAttributeName, params.cACertificateSubjectAttributeName) && checkField(crossCertificateSubjectAttributeName, params.crossCertificateSubjectAttributeName) && checkField(certificateRevocationListIssuerAttributeName, params.certificateRevocationListIssuerAttributeName) && checkField(deltaRevocationListIssuerAttributeName, params.deltaRevocationListIssuerAttributeName) && checkField(authorityRevocationListIssuerAttributeName, params.authorityRevocationListIssuerAttributeName) && checkField(attributeCertificateAttributeSubjectAttributeName, params.attributeCertificateAttributeSubjectAttributeName) && checkField(aACertificateSubjectAttributeName, params.aACertificateSubjectAttributeName) && checkField(attributeDescriptorCertificateSubjectAttributeName, params.attributeDescriptorCertificateSubjectAttributeName) && checkField(attributeCertificateRevocationListIssuerAttributeName, params.attributeCertificateRevocationListIssuerAttributeName) && checkField(attributeAuthorityRevocationListIssuerAttributeName, params.attributeAuthorityRevocationListIssuerAttributeName) && checkField(searchForSerialNumberIn, params.searchForSerialNumberIn); } private boolean checkField(Object o1, Object o2) { if (o1 == o2) { return true; } if (o1 == null) { return false; } return o1.equals(o2); } public int hashCode() { int hash = 0; hash = addHashCode(hash, userCertificateAttribute); hash = addHashCode(hash, cACertificateAttribute); hash = addHashCode(hash, crossCertificateAttribute); hash = addHashCode(hash, certificateRevocationListAttribute); hash = addHashCode(hash, deltaRevocationListAttribute); hash = addHashCode(hash, authorityRevocationListAttribute); hash = addHashCode(hash, attributeCertificateAttributeAttribute); hash = addHashCode(hash, aACertificateAttribute); hash = addHashCode(hash, attributeDescriptorCertificateAttribute); hash = addHashCode(hash, attributeCertificateRevocationListAttribute); hash = addHashCode(hash, attributeAuthorityRevocationListAttribute); hash = addHashCode(hash, ldapUserCertificateAttributeName); hash = addHashCode(hash, ldapCACertificateAttributeName); hash = addHashCode(hash, ldapCrossCertificateAttributeName); hash = addHashCode(hash, ldapCertificateRevocationListAttributeName); hash = addHashCode(hash, ldapDeltaRevocationListAttributeName); hash = addHashCode(hash, ldapAuthorityRevocationListAttributeName); hash = addHashCode(hash, ldapAttributeCertificateAttributeAttributeName); hash = addHashCode(hash, ldapAACertificateAttributeName); hash = addHashCode(hash, ldapAttributeDescriptorCertificateAttributeName); hash = addHashCode(hash, ldapAttributeCertificateRevocationListAttributeName); hash = addHashCode(hash, ldapAttributeAuthorityRevocationListAttributeName); hash = addHashCode(hash, userCertificateSubjectAttributeName); hash = addHashCode(hash, cACertificateSubjectAttributeName); hash = addHashCode(hash, crossCertificateSubjectAttributeName); hash = addHashCode(hash, certificateRevocationListIssuerAttributeName); hash = addHashCode(hash, deltaRevocationListIssuerAttributeName); hash = addHashCode(hash, authorityRevocationListIssuerAttributeName); hash = addHashCode(hash, attributeCertificateAttributeSubjectAttributeName); hash = addHashCode(hash, aACertificateSubjectAttributeName); hash = addHashCode(hash, attributeDescriptorCertificateSubjectAttributeName); hash = addHashCode(hash, attributeCertificateRevocationListIssuerAttributeName); hash = addHashCode(hash, attributeAuthorityRevocationListIssuerAttributeName); hash = addHashCode(hash, searchForSerialNumberIn); return hash; } private int addHashCode(int hashCode, Object o) { return (hashCode * 29) + (o == null ? 0 : o.hashCode()); }
Returns:Returns the aACertificateAttribute.
/** * @return Returns the aACertificateAttribute. */
public String getAACertificateAttribute() { return aACertificateAttribute; }
Returns:Returns the aACertificateSubjectAttributeName.
/** * @return Returns the aACertificateSubjectAttributeName. */
public String getAACertificateSubjectAttributeName() { return aACertificateSubjectAttributeName; }
Returns:Returns the attributeAuthorityRevocationListAttribute.
/** * @return Returns the attributeAuthorityRevocationListAttribute. */
public String getAttributeAuthorityRevocationListAttribute() { return attributeAuthorityRevocationListAttribute; }
Returns:Returns the attributeAuthorityRevocationListIssuerAttributeName.
/** * @return Returns the attributeAuthorityRevocationListIssuerAttributeName. */
public String getAttributeAuthorityRevocationListIssuerAttributeName() { return attributeAuthorityRevocationListIssuerAttributeName; }
Returns:Returns the attributeCertificateAttributeAttribute.
/** * @return Returns the attributeCertificateAttributeAttribute. */
public String getAttributeCertificateAttributeAttribute() { return attributeCertificateAttributeAttribute; }
Returns:Returns the attributeCertificateAttributeSubjectAttributeName.
/** * @return Returns the attributeCertificateAttributeSubjectAttributeName. */
public String getAttributeCertificateAttributeSubjectAttributeName() { return attributeCertificateAttributeSubjectAttributeName; }
Returns:Returns the attributeCertificateRevocationListAttribute.
/** * @return Returns the attributeCertificateRevocationListAttribute. */
public String getAttributeCertificateRevocationListAttribute() { return attributeCertificateRevocationListAttribute; }
Returns:Returns the attributeCertificateRevocationListIssuerAttributeName.
/** * @return Returns the * attributeCertificateRevocationListIssuerAttributeName. */
public String getAttributeCertificateRevocationListIssuerAttributeName() { return attributeCertificateRevocationListIssuerAttributeName; }
Returns:Returns the attributeDescriptorCertificateAttribute.
/** * @return Returns the attributeDescriptorCertificateAttribute. */
public String getAttributeDescriptorCertificateAttribute() { return attributeDescriptorCertificateAttribute; }
Returns:Returns the attributeDescriptorCertificateSubjectAttributeName.
/** * @return Returns the attributeDescriptorCertificateSubjectAttributeName. */
public String getAttributeDescriptorCertificateSubjectAttributeName() { return attributeDescriptorCertificateSubjectAttributeName; }
Returns:Returns the authorityRevocationListAttribute.
/** * @return Returns the authorityRevocationListAttribute. */
public String getAuthorityRevocationListAttribute() { return authorityRevocationListAttribute; }
Returns:Returns the authorityRevocationListIssuerAttributeName.
/** * @return Returns the authorityRevocationListIssuerAttributeName. */
public String getAuthorityRevocationListIssuerAttributeName() { return authorityRevocationListIssuerAttributeName; }
Returns:Returns the baseDN.
/** * @return Returns the baseDN. */
public String getBaseDN() { return baseDN; }
Returns:Returns the cACertificateAttribute.
/** * @return Returns the cACertificateAttribute. */
public String getCACertificateAttribute() { return cACertificateAttribute; }
Returns:Returns the cACertificateSubjectAttributeName.
/** * @return Returns the cACertificateSubjectAttributeName. */
public String getCACertificateSubjectAttributeName() { return cACertificateSubjectAttributeName; }
Returns:Returns the certificateRevocationListAttribute.
/** * @return Returns the certificateRevocationListAttribute. */
public String getCertificateRevocationListAttribute() { return certificateRevocationListAttribute; }
Returns:Returns the certificateRevocationListIssuerAttributeName.
/** * @return Returns the certificateRevocationListIssuerAttributeName. */
public String getCertificateRevocationListIssuerAttributeName() { return certificateRevocationListIssuerAttributeName; }
Returns:Returns the crossCertificateAttribute.
/** * @return Returns the crossCertificateAttribute. */
public String getCrossCertificateAttribute() { return crossCertificateAttribute; }
Returns:Returns the crossCertificateSubjectAttributeName.
/** * @return Returns the crossCertificateSubjectAttributeName. */
public String getCrossCertificateSubjectAttributeName() { return crossCertificateSubjectAttributeName; }
Returns:Returns the deltaRevocationListAttribute.
/** * @return Returns the deltaRevocationListAttribute. */
public String getDeltaRevocationListAttribute() { return deltaRevocationListAttribute; }
Returns:Returns the deltaRevocationListIssuerAttributeName.
/** * @return Returns the deltaRevocationListIssuerAttributeName. */
public String getDeltaRevocationListIssuerAttributeName() { return deltaRevocationListIssuerAttributeName; }
Returns:Returns the ldapAACertificateAttributeName.
/** * @return Returns the ldapAACertificateAttributeName. */
public String getLdapAACertificateAttributeName() { return ldapAACertificateAttributeName; }
Returns:Returns the ldapAttributeAuthorityRevocationListAttributeName.
/** * @return Returns the ldapAttributeAuthorityRevocationListAttributeName. */
public String getLdapAttributeAuthorityRevocationListAttributeName() { return ldapAttributeAuthorityRevocationListAttributeName; }
Returns:Returns the ldapAttributeCertificateAttributeAttributeName.
/** * @return Returns the ldapAttributeCertificateAttributeAttributeName. */
public String getLdapAttributeCertificateAttributeAttributeName() { return ldapAttributeCertificateAttributeAttributeName; }
Returns:Returns the ldapAttributeCertificateRevocationListAttributeName.
/** * @return Returns the ldapAttributeCertificateRevocationListAttributeName. */
public String getLdapAttributeCertificateRevocationListAttributeName() { return ldapAttributeCertificateRevocationListAttributeName; }
Returns:Returns the ldapAttributeDescriptorCertificateAttributeName.
/** * @return Returns the ldapAttributeDescriptorCertificateAttributeName. */
public String getLdapAttributeDescriptorCertificateAttributeName() { return ldapAttributeDescriptorCertificateAttributeName; }
Returns:Returns the ldapAuthorityRevocationListAttributeName.
/** * @return Returns the ldapAuthorityRevocationListAttributeName. */
public String getLdapAuthorityRevocationListAttributeName() { return ldapAuthorityRevocationListAttributeName; }
Returns:Returns the ldapCACertificateAttributeName.
/** * @return Returns the ldapCACertificateAttributeName. */
public String getLdapCACertificateAttributeName() { return ldapCACertificateAttributeName; }
Returns:Returns the ldapCertificateRevocationListAttributeName.
/** * @return Returns the ldapCertificateRevocationListAttributeName. */
public String getLdapCertificateRevocationListAttributeName() { return ldapCertificateRevocationListAttributeName; }
Returns:Returns the ldapCrossCertificateAttributeName.
/** * @return Returns the ldapCrossCertificateAttributeName. */
public String getLdapCrossCertificateAttributeName() { return ldapCrossCertificateAttributeName; }
Returns:Returns the ldapDeltaRevocationListAttributeName.
/** * @return Returns the ldapDeltaRevocationListAttributeName. */
public String getLdapDeltaRevocationListAttributeName() { return ldapDeltaRevocationListAttributeName; }
Returns:Returns the ldapURL.
/** * @return Returns the ldapURL. */
public String getLdapURL() { return ldapURL; }
Returns:Returns the ldapUserCertificateAttributeName.
/** * @return Returns the ldapUserCertificateAttributeName. */
public String getLdapUserCertificateAttributeName() { return ldapUserCertificateAttributeName; }
Returns:Returns the searchForSerialNumberIn.
/** * @return Returns the searchForSerialNumberIn. */
public String getSearchForSerialNumberIn() { return searchForSerialNumberIn; }
Returns:Returns the userCertificateAttribute.
/** * @return Returns the userCertificateAttribute. */
public String getUserCertificateAttribute() { return userCertificateAttribute; }
Returns:Returns the userCertificateSubjectAttributeName.
/** * @return Returns the userCertificateSubjectAttributeName. */
public String getUserCertificateSubjectAttributeName() { return userCertificateSubjectAttributeName; } public static X509LDAPCertStoreParameters getInstance(LDAPCertStoreParameters params) { String server = "ldap://" + params.getServerName() + ":" + params.getPort(); X509LDAPCertStoreParameters _params = new Builder(server, "").build(); return _params; } }