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