Package java.security.cert
Class LDAPCertStoreParameters
java.lang.Object
java.security.cert.LDAPCertStoreParameters
- All Implemented Interfaces:
Cloneable,CertStoreParameters
public class LDAPCertStoreParameters extends Object implements CertStoreParameters
The parameters to initialize a LDAP
CertStore instance.-
Constructor Summary
Constructors Constructor Description LDAPCertStoreParameters()Creates a newLDAPCertStoreParametersinstance with default parameters.LDAPCertStoreParameters(String serverName)Creates a newLDAPCertStoreParametersinstance with the specified server name and default port 389.LDAPCertStoreParameters(String serverName, int port)Creates a newLDAPCertStoreParametersinstance with the specified server name and port. -
Method Summary
-
Constructor Details
-
LDAPCertStoreParameters
Creates a newLDAPCertStoreParametersinstance with the specified server name and port.- Parameters:
serverName- the LDAP server name.port- the port.- Throws:
NullPointerException- isserverNameisnull.
-
LDAPCertStoreParameters
public LDAPCertStoreParameters()Creates a newLDAPCertStoreParametersinstance with default parameters.The default parameters are server name "localhost" and port 389.
-
LDAPCertStoreParameters
Creates a newLDAPCertStoreParametersinstance with the specified server name and default port 389.- Parameters:
serverName- the LDAP server name.- Throws:
NullPointerException- ifserverNameisnull.
-
-
Method Details
-
clone
Clones thisLDAPCertStoreParametersinstance.- Specified by:
clonein interfaceCertStoreParameters- Overrides:
clonein classObject- Returns:
- the cloned instance.
-
getPort
public int getPort()Returns the LDAP server port.- Returns:
- the LDAP server port.
-
getServerName
Returns the LDAP server name.- Returns:
- the LDAP server name.
-
toString
Returns the string representation of thisLDAPCertStoreParametersinstance.
-