public static class X509LDAPCertStoreParameters.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(String ldapURL,
String baseDN) |
public X509LDAPCertStoreParameters.Builder setUserCertificateAttribute(String userCertificateAttribute)
userCertificateAttribute
- Attribute name(s) in the LDAP directory where end certificates
are stored. Separated by space. Defaults to "userCertificate"
if null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setCACertificateAttribute(String cACertificateAttribute)
cACertificateAttribute
- Attribute name(s) in the LDAP directory where CA certificates
are stored. Separated by space. Defaults to "cACertificate" if
null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setCrossCertificateAttribute(String crossCertificateAttribute)
crossCertificateAttribute
- Attribute name(s), where the cross certificates are stored.
Separated by space. Defaults to "crossCertificatePair" if
null
IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setCertificateRevocationListAttribute(String certificateRevocationListAttribute)
certificateRevocationListAttribute
- Attribute name(s) in the LDAP directory where CRLs are stored.
Separated by space. Defaults to "certificateRevocationList" if
null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setDeltaRevocationListAttribute(String deltaRevocationListAttribute)
deltaRevocationListAttribute
- Attribute name(s) in the LDAP directory where delta RLs are
stored. Separated by space. Defaults to "deltaRevocationList"
if null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAuthorityRevocationListAttribute(String authorityRevocationListAttribute)
authorityRevocationListAttribute
- Attribute name(s) in the LDAP directory where CRLs for
authorities are stored. Separated by space. Defaults to
"authorityRevocationList" if null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeCertificateAttributeAttribute(String attributeCertificateAttributeAttribute)
attributeCertificateAttributeAttribute
- Attribute name(s) in the LDAP directory where end attribute
certificates are stored. Separated by space. Defaults to
"attributeCertificateAttribute" if null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAACertificateAttribute(String aACertificateAttribute)
aACertificateAttribute
- Attribute name(s) in the LDAP directory where attribute
certificates for attribute authorities are stored. Separated
by space. Defaults to "aACertificate" if null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeDescriptorCertificateAttribute(String attributeDescriptorCertificateAttribute)
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
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeCertificateRevocationListAttribute(String attributeCertificateRevocationListAttribute)
attributeCertificateRevocationListAttribute
- Attribute name(s) in the LDAP directory where CRLs for
attribute certificates are stored. Separated by space.
Defaults to "attributeCertificateRevocationList" if
null
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeAuthorityRevocationListAttribute(String attributeAuthorityRevocationListAttribute)
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
.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapUserCertificateAttributeName(String ldapUserCertificateAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapCACertificateAttributeName(String ldapCACertificateAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapCrossCertificateAttributeName(String ldapCrossCertificateAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapCertificateRevocationListAttributeName(String ldapCertificateRevocationListAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapDeltaRevocationListAttributeName(String ldapDeltaRevocationListAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapAuthorityRevocationListAttributeName(String ldapAuthorityRevocationListAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapAttributeCertificateAttributeAttributeName(String ldapAttributeCertificateAttributeAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapAACertificateAttributeName(String ldapAACertificateAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapAttributeDescriptorCertificateAttributeName(String ldapAttributeDescriptorCertificateAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapAttributeCertificateRevocationListAttributeName(String ldapAttributeCertificateRevocationListAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setLdapAttributeAuthorityRevocationListAttributeName(String ldapAttributeAuthorityRevocationListAttributeName)
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".IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setUserCertificateSubjectAttributeName(String userCertificateSubjectAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setCACertificateSubjectAttributeName(String cACertificateSubjectAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setCrossCertificateSubjectAttributeName(String crossCertificateSubjectAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setCertificateRevocationListIssuerAttributeName(String certificateRevocationListIssuerAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setDeltaRevocationListIssuerAttributeName(String deltaRevocationListIssuerAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAuthorityRevocationListIssuerAttributeName(String authorityRevocationListIssuerAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeCertificateAttributeSubjectAttributeName(String attributeCertificateAttributeSubjectAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAACertificateSubjectAttributeName(String aACertificateSubjectAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeDescriptorCertificateSubjectAttributeName(String attributeDescriptorCertificateSubjectAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeCertificateRevocationListIssuerAttributeName(String attributeCertificateRevocationListIssuerAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setAttributeAuthorityRevocationListIssuerAttributeName(String attributeAuthorityRevocationListIssuerAttributeName)
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.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters.Builder setSearchForSerialNumberIn(String searchForSerialNumberIn)
searchForSerialNumberIn
- If not null
the serial number of the
certificate is searched in this LDAP attribute.IllegalArgumentException
- if a necessary parameter is null
.public X509LDAPCertStoreParameters build()
Copyright © 2015. All rights reserved.