Package org.bouncycastle.jce
Class X509LDAPCertStoreParameters.Builder
java.lang.Object
org.bouncycastle.jce.X509LDAPCertStoreParameters.Builder
- Enclosing class:
X509LDAPCertStoreParameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAACertificateAttribute
(String aACertificateAttribute) setAACertificateSubjectAttributeName
(String aACertificateSubjectAttributeName) setAttributeAuthorityRevocationListAttribute
(String attributeAuthorityRevocationListAttribute) setAttributeAuthorityRevocationListIssuerAttributeName
(String attributeAuthorityRevocationListIssuerAttributeName) setAttributeCertificateAttributeAttribute
(String attributeCertificateAttributeAttribute) setAttributeCertificateAttributeSubjectAttributeName
(String attributeCertificateAttributeSubjectAttributeName) setAttributeCertificateRevocationListAttribute
(String attributeCertificateRevocationListAttribute) setAttributeCertificateRevocationListIssuerAttributeName
(String attributeCertificateRevocationListIssuerAttributeName) setAttributeDescriptorCertificateAttribute
(String attributeDescriptorCertificateAttribute) setAttributeDescriptorCertificateSubjectAttributeName
(String attributeDescriptorCertificateSubjectAttributeName) setAuthorityRevocationListAttribute
(String authorityRevocationListAttribute) setAuthorityRevocationListIssuerAttributeName
(String authorityRevocationListIssuerAttributeName) setCACertificateAttribute
(String cACertificateAttribute) setCACertificateSubjectAttributeName
(String cACertificateSubjectAttributeName) setCertificateRevocationListAttribute
(String certificateRevocationListAttribute) setCertificateRevocationListIssuerAttributeName
(String certificateRevocationListIssuerAttributeName) setCrossCertificateAttribute
(String crossCertificateAttribute) setCrossCertificateSubjectAttributeName
(String crossCertificateSubjectAttributeName) setDeltaRevocationListAttribute
(String deltaRevocationListAttribute) setDeltaRevocationListIssuerAttributeName
(String deltaRevocationListIssuerAttributeName) setLdapAACertificateAttributeName
(String ldapAACertificateAttributeName) setLdapAttributeAuthorityRevocationListAttributeName
(String ldapAttributeAuthorityRevocationListAttributeName) setLdapAttributeCertificateAttributeAttributeName
(String ldapAttributeCertificateAttributeAttributeName) setLdapAttributeCertificateRevocationListAttributeName
(String ldapAttributeCertificateRevocationListAttributeName) setLdapAttributeDescriptorCertificateAttributeName
(String ldapAttributeDescriptorCertificateAttributeName) setLdapAuthorityRevocationListAttributeName
(String ldapAuthorityRevocationListAttributeName) setLdapCACertificateAttributeName
(String ldapCACertificateAttributeName) setLdapCertificateRevocationListAttributeName
(String ldapCertificateRevocationListAttributeName) setLdapCrossCertificateAttributeName
(String ldapCrossCertificateAttributeName) setLdapDeltaRevocationListAttributeName
(String ldapDeltaRevocationListAttributeName) setLdapUserCertificateAttributeName
(String ldapUserCertificateAttributeName) setSearchForSerialNumberIn
(String searchForSerialNumberIn) setUserCertificateAttribute
(String userCertificateAttribute) setUserCertificateSubjectAttributeName
(String userCertificateSubjectAttributeName)
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
setUserCertificateAttribute
public X509LDAPCertStoreParameters.Builder setUserCertificateAttribute(String userCertificateAttribute) - Parameters:
userCertificateAttribute
- Attribute name(s) in the LDAP directory where end certificates are stored. Separated by space. Defaults to "userCertificate" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setCACertificateAttribute
- Parameters:
cACertificateAttribute
- Attribute name(s) in the LDAP directory where CA certificates are stored. Separated by space. Defaults to "cACertificate" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setCrossCertificateAttribute
public X509LDAPCertStoreParameters.Builder setCrossCertificateAttribute(String crossCertificateAttribute) - Parameters:
crossCertificateAttribute
- Attribute name(s), where the cross certificates are stored. Separated by space. Defaults to "crossCertificatePair" ifnull
- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setCertificateRevocationListAttribute
public X509LDAPCertStoreParameters.Builder setCertificateRevocationListAttribute(String certificateRevocationListAttribute) - Parameters:
certificateRevocationListAttribute
- Attribute name(s) in the LDAP directory where CRLs are stored. Separated by space. Defaults to "certificateRevocationList" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setDeltaRevocationListAttribute
public X509LDAPCertStoreParameters.Builder setDeltaRevocationListAttribute(String deltaRevocationListAttribute) - Parameters:
deltaRevocationListAttribute
- Attribute name(s) in the LDAP directory where delta RLs are stored. Separated by space. Defaults to "deltaRevocationList" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAuthorityRevocationListAttribute
public X509LDAPCertStoreParameters.Builder setAuthorityRevocationListAttribute(String authorityRevocationListAttribute) - Parameters:
authorityRevocationListAttribute
- Attribute name(s) in the LDAP directory where CRLs for authorities are stored. Separated by space. Defaults to "authorityRevocationList" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeCertificateAttributeAttribute
public X509LDAPCertStoreParameters.Builder setAttributeCertificateAttributeAttribute(String attributeCertificateAttributeAttribute) - Parameters:
attributeCertificateAttributeAttribute
- Attribute name(s) in the LDAP directory where end attribute certificates are stored. Separated by space. Defaults to "attributeCertificateAttribute" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAACertificateAttribute
- Parameters:
aACertificateAttribute
- Attribute name(s) in the LDAP directory where attribute certificates for attribute authorities are stored. Separated by space. Defaults to "aACertificate" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeDescriptorCertificateAttribute
public X509LDAPCertStoreParameters.Builder setAttributeDescriptorCertificateAttribute(String attributeDescriptorCertificateAttribute) - Parameters:
attributeDescriptorCertificateAttribute
- Attribute name(s) in the LDAP directory where self signed attribute certificates for attribute authorities are stored. Separated by space. Defaults to "attributeDescriptorCertificate" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeCertificateRevocationListAttribute
public X509LDAPCertStoreParameters.Builder setAttributeCertificateRevocationListAttribute(String attributeCertificateRevocationListAttribute) - Parameters:
attributeCertificateRevocationListAttribute
- Attribute name(s) in the LDAP directory where CRLs for attribute certificates are stored. Separated by space. Defaults to "attributeCertificateRevocationList" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeAuthorityRevocationListAttribute
public X509LDAPCertStoreParameters.Builder setAttributeAuthorityRevocationListAttribute(String attributeAuthorityRevocationListAttribute) - Parameters:
attributeAuthorityRevocationListAttribute
- Attribute name(s) in the LDAP directory where RLs for attribute authority attribute certificates are stored. Separated by space. Defaults to "attributeAuthorityRevocationList" ifnull
.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapUserCertificateAttributeName
public X509LDAPCertStoreParameters.Builder setLdapUserCertificateAttributeName(String ldapUserCertificateAttributeName) - Parameters:
ldapUserCertificateAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifieduserCertificateSubjectAttributeName
. E.g. if "cn" is used to put information about the subject for end certificates, then specify "cn".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapCACertificateAttributeName
public X509LDAPCertStoreParameters.Builder setLdapCACertificateAttributeName(String ldapCACertificateAttributeName) - Parameters:
ldapCACertificateAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedcACertificateSubjectAttributeName
. E.g. if "ou" is used to put information about the subject for CA certificates, then specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapCrossCertificateAttributeName
public X509LDAPCertStoreParameters.Builder setLdapCrossCertificateAttributeName(String ldapCrossCertificateAttributeName) - Parameters:
ldapCrossCertificateAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedcrossCertificateSubjectAttributeName
. E.g. if "o" is used to put information about the subject for cross certificates, then specify "o".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapCertificateRevocationListAttributeName
public X509LDAPCertStoreParameters.Builder setLdapCertificateRevocationListAttributeName(String ldapCertificateRevocationListAttributeName) - Parameters:
ldapCertificateRevocationListAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedcertificateRevocationListIssuerAttributeName
. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapDeltaRevocationListAttributeName
public X509LDAPCertStoreParameters.Builder setLdapDeltaRevocationListAttributeName(String ldapDeltaRevocationListAttributeName) - Parameters:
ldapDeltaRevocationListAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifieddeltaRevocationListIssuerAttributeName
. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapAuthorityRevocationListAttributeName
public X509LDAPCertStoreParameters.Builder setLdapAuthorityRevocationListAttributeName(String ldapAuthorityRevocationListAttributeName) - Parameters:
ldapAuthorityRevocationListAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedauthorityRevocationListIssuerAttributeName
. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapAttributeCertificateAttributeAttributeName
public X509LDAPCertStoreParameters.Builder setLdapAttributeCertificateAttributeAttributeName(String ldapAttributeCertificateAttributeAttributeName) - Parameters:
ldapAttributeCertificateAttributeAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedattributeCertificateAttributeSubjectAttributeName
. E.g. if "cn" is used to put information about the subject of end attribute certificates, specify "cn".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapAACertificateAttributeName
public X509LDAPCertStoreParameters.Builder setLdapAACertificateAttributeName(String ldapAACertificateAttributeName) - Parameters:
ldapAACertificateAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedaACertificateSubjectAttributeName
. E.g. if "ou" is used to put information about the subject of attribute authority attribute certificates, specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapAttributeDescriptorCertificateAttributeName
public X509LDAPCertStoreParameters.Builder setLdapAttributeDescriptorCertificateAttributeName(String ldapAttributeDescriptorCertificateAttributeName) - Parameters:
ldapAttributeDescriptorCertificateAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedattributeDescriptorCertificateSubjectAttributeName
. E.g. if "o" is used to put information about the subject of self signed attribute authority attribute certificates, specify "o".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapAttributeCertificateRevocationListAttributeName
public X509LDAPCertStoreParameters.Builder setLdapAttributeCertificateRevocationListAttributeName(String ldapAttributeCertificateRevocationListAttributeName) - Parameters:
ldapAttributeCertificateRevocationListAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedattributeCertificateRevocationListIssuerAttributeName
. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setLdapAttributeAuthorityRevocationListAttributeName
public X509LDAPCertStoreParameters.Builder setLdapAttributeAuthorityRevocationListAttributeName(String ldapAttributeAuthorityRevocationListAttributeName) - Parameters:
ldapAttributeAuthorityRevocationListAttributeName
- The attribute name(s) in the LDAP directory where to search for the attribute value of the specifiedattributeAuthorityRevocationListIssuerAttributeName
. E.g. if "ou" is used to put information about the issuer of CRLs, specify "ou".- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setUserCertificateSubjectAttributeName
public X509LDAPCertStoreParameters.Builder setUserCertificateSubjectAttributeName(String userCertificateSubjectAttributeName) - Parameters:
userCertificateSubjectAttributeName
- Attribute(s) in the subject of the certificate which is used to be searched in theldapUserCertificateAttributeName
. E.g. the "cn" attribute of the DN could be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setCACertificateSubjectAttributeName
public X509LDAPCertStoreParameters.Builder setCACertificateSubjectAttributeName(String cACertificateSubjectAttributeName) - Parameters:
cACertificateSubjectAttributeName
- Attribute(s) in the subject of the certificate which is used to be searched in theldapCACertificateAttributeName
. E.g. the "ou" attribute of the DN could be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setCrossCertificateSubjectAttributeName
public X509LDAPCertStoreParameters.Builder setCrossCertificateSubjectAttributeName(String crossCertificateSubjectAttributeName) - Parameters:
crossCertificateSubjectAttributeName
- Attribute(s) in the subject of the cross certificate which is used to be searched in theldapCrossCertificateAttributeName
. E.g. the "o" attribute of the DN may be appropriate.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setCertificateRevocationListIssuerAttributeName
public X509LDAPCertStoreParameters.Builder setCertificateRevocationListIssuerAttributeName(String certificateRevocationListIssuerAttributeName) - Parameters:
certificateRevocationListIssuerAttributeName
- Attribute(s) in the issuer of the CRL which is used to be searched in theldapCertificateRevocationListAttributeName
. E.g. the "o" or "ou" attribute may be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setDeltaRevocationListIssuerAttributeName
public X509LDAPCertStoreParameters.Builder setDeltaRevocationListIssuerAttributeName(String deltaRevocationListIssuerAttributeName) - Parameters:
deltaRevocationListIssuerAttributeName
- Attribute(s) in the issuer of the CRL which is used to be searched in theldapDeltaRevocationListAttributeName
. E.g. the "o" or "ou" attribute may be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAuthorityRevocationListIssuerAttributeName
public X509LDAPCertStoreParameters.Builder setAuthorityRevocationListIssuerAttributeName(String authorityRevocationListIssuerAttributeName) - Parameters:
authorityRevocationListIssuerAttributeName
- Attribute(s) in the issuer of the CRL which is used to be searched in theldapAuthorityRevocationListAttributeName
. E.g. the "o" or "ou" attribute may be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeCertificateAttributeSubjectAttributeName
public X509LDAPCertStoreParameters.Builder setAttributeCertificateAttributeSubjectAttributeName(String attributeCertificateAttributeSubjectAttributeName) - Parameters:
attributeCertificateAttributeSubjectAttributeName
- Attribute(s) in the subject of the attribute certificate which is used to be searched in theldapAttributeCertificateAttributeAttributeName
. E.g. the "cn" attribute of the DN could be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAACertificateSubjectAttributeName
public X509LDAPCertStoreParameters.Builder setAACertificateSubjectAttributeName(String aACertificateSubjectAttributeName) - Parameters:
aACertificateSubjectAttributeName
- Attribute(s) in the subject of the attribute certificate which is used to be searched in theldapAACertificateAttributeName
. E.g. the "ou" attribute of the DN could be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeDescriptorCertificateSubjectAttributeName
public X509LDAPCertStoreParameters.Builder setAttributeDescriptorCertificateSubjectAttributeName(String attributeDescriptorCertificateSubjectAttributeName) - Parameters:
attributeDescriptorCertificateSubjectAttributeName
- Attribute(s) in the subject of the attribute certificate which is used to be searched in theldapAttributeDescriptorCertificateAttributeName
. E.g. the "o" attribute of the DN could be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeCertificateRevocationListIssuerAttributeName
public X509LDAPCertStoreParameters.Builder setAttributeCertificateRevocationListIssuerAttributeName(String attributeCertificateRevocationListIssuerAttributeName) - Parameters:
attributeCertificateRevocationListIssuerAttributeName
- Attribute(s) in the issuer of the CRL which is used to be searched in theldapAttributeCertificateRevocationListAttributeName
. E.g. the "o" or "ou" attribute may be used certificate is searched in this LDAP attribute.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setAttributeAuthorityRevocationListIssuerAttributeName
public X509LDAPCertStoreParameters.Builder setAttributeAuthorityRevocationListIssuerAttributeName(String attributeAuthorityRevocationListIssuerAttributeName) - Parameters:
attributeAuthorityRevocationListIssuerAttributeName
- Anttribute(s) in the issuer of the CRL which is used to be searched in theldapAttributeAuthorityRevocationListAttributeName
. E.g. the "o" or "ou" attribute may be used.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
setSearchForSerialNumberIn
public X509LDAPCertStoreParameters.Builder setSearchForSerialNumberIn(String searchForSerialNumberIn) - Parameters:
searchForSerialNumberIn
- If notnull
the serial number of the certificate is searched in this LDAP attribute.- Returns:
- the builder
- Throws:
IllegalArgumentException
- if a necessary parameter isnull
.
-
build
-