public class

LDAPCertStoreParameters

extends Object
implements CertStoreParameters
java.lang.Object
   ↳ java.security.cert.LDAPCertStoreParameters

Class Overview

The parameters to initialize a LDAP CertStore instance.

Summary

Public Constructors
LDAPCertStoreParameters(String serverName, int port)
Creates a new LDAPCertStoreParameters instance with the specified server name and port.
LDAPCertStoreParameters()
Creates a new LDAPCertStoreParameters instance with default parameters.
LDAPCertStoreParameters(String serverName)
Creates a new LDAPCertStoreParameters instance with the specified server name and default port 389.
Public Methods
Object clone()
Clones this LDAPCertStoreParameters instance.
int getPort()
Returns the LDAP server port.
String getServerName()
Returns the LDAP server name.
String toString()
Returns the string representation of this LDAPCertStoreParameters instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.cert.CertStoreParameters

Public Constructors

public LDAPCertStoreParameters (String serverName, int port)

Since: API Level 1

Creates a new LDAPCertStoreParameters instance with the specified server name and port.

Parameters
serverName the LDAP server name.
port the port.
Throws
NullPointerException is serverName is null.

public LDAPCertStoreParameters ()

Since: API Level 1

Creates a new LDAPCertStoreParameters instance with default parameters.

The default parameters are server name "localhost" and port 389.

public LDAPCertStoreParameters (String serverName)

Since: API Level 1

Creates a new LDAPCertStoreParameters instance with the specified server name and default port 389.

Parameters
serverName the LDAP server name.
Throws
NullPointerException if serverName is null.

Public Methods

public Object clone ()

Since: API Level 1

Clones this LDAPCertStoreParameters instance.

Returns
  • the cloned instance.

public int getPort ()

Since: API Level 1

Returns the LDAP server port.

Returns
  • the LDAP server port.

public String getServerName ()

Since: API Level 1

Returns the LDAP server name.

Returns
  • the LDAP server name.

public String toString ()

Since: API Level 1

Returns the string representation of this LDAPCertStoreParameters instance.

Returns
  • the string representation of this LDAPCertStoreParameters instance.