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 LDAPCertStoreinstance.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clones thisLDAPCertStoreParametersinstance.intgetPort()Returns the LDAP server port.StringgetServerName()Returns the LDAP server name.StringtoString()Returns the string representation of thisLDAPCertStoreParametersinstance.
-
-
-
Constructor Detail
-
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName, int port)
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
public LDAPCertStoreParameters(String serverName)
Creates a newLDAPCertStoreParametersinstance with the specified server name and default port 389.- Parameters:
serverName- the LDAP server name.- Throws:
NullPointerException- ifserverNameisnull.
-
-
Method Detail
-
clone
public Object 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
public String getServerName()
Returns the LDAP server name.- Returns:
- the LDAP server name.
-
-