Class LDAPCertStoreParameters
- All Implemented Interfaces:
- Cloneable,- CertStoreParameters
CertStore algorithm.
 
 This class is used to provide necessary configuration parameters (server
 name and port number) to implementations of the LDAP CertStore
 algorithm. However, if you are retrieving certificates or CRLs from
 an ldap URI as specified by RFC 5280, use the
 URICertStoreParameters
 instead, as the URI may contain additional information such as the
 distinguished name that will help the LDAP CertStore find the specific
 certificates and CRLs.
 
Concurrent Access
Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
- Since:
- 1.4
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance ofLDAPCertStoreParameterswith the default parameter values (server name "localhost", port 389).LDAPCertStoreParameters(String serverName) Creates an instance ofLDAPCertStoreParameterswith the specified server name and a default port of 389.LDAPCertStoreParameters(String serverName, int port) Creates an instance ofLDAPCertStoreParameterswith the specified parameter values.
- 
Method Summary
- 
Constructor Details- 
LDAPCertStoreParametersCreates an instance ofLDAPCertStoreParameterswith the specified parameter values.- Parameters:
- serverName- the DNS name of the LDAP server
- port- the port number of the LDAP server
- Throws:
- NullPointerException- if- serverNameis- null
 
- 
LDAPCertStoreParametersCreates an instance ofLDAPCertStoreParameterswith the specified server name and a default port of 389.- Parameters:
- serverName- the DNS name of the LDAP server
- Throws:
- NullPointerException- if- serverNameis- null
 
- 
LDAPCertStoreParameterspublic LDAPCertStoreParameters()Creates an instance ofLDAPCertStoreParameterswith the default parameter values (server name "localhost", port 389).
 
- 
- 
Method Details- 
getServerName
- 
getPortpublic int getPort()Returns the port number of the LDAP server.- Returns:
- the port number
 
- 
cloneReturns a copy of this object. Changes to the copy will not affect the original and vice versa.Note: this method currently performs a shallow copy of the object (simply calls Object.clone()). This may be changed in a future revision to perform a deep copy if new parameters are added that should not be shared.- Specified by:
- clonein interface- CertStoreParameters
- Overrides:
- clonein class- Object
- Returns:
- the copy
- See Also:
 
- 
toString
 
-