Most visited

Recently visited

Added in API level 1

LDAPCertStoreParameters

public class LDAPCertStoreParameters
extends Object implements CertStoreParameters

java.lang.Object
   ↳ java.security.cert.LDAPCertStoreParameters


Parameters used as input for the LDAP CertStore algorithm.

This class is used to provide necessary configuration parameters (server name and port number) to implementations of the LDAP CertStore algorithm.

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.

See also:

Summary

Public constructors

LDAPCertStoreParameters(String serverName, int port)

Creates an instance of LDAPCertStoreParameters with the specified parameter values.

LDAPCertStoreParameters(String serverName)

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

LDAPCertStoreParameters()

Creates an instance of LDAPCertStoreParameters with the default parameter values (server name "localhost", port 389).

Public methods

Object clone()

Returns a copy of this object.

int getPort()

Returns the port number of the LDAP server.

String getServerName()

Returns the DNS name of the LDAP server.

String toString()

Returns a formatted string describing the parameters.

Inherited methods

From class java.lang.Object
From interface java.security.cert.CertStoreParameters

Public constructors

LDAPCertStoreParameters

Added in API level 1
LDAPCertStoreParameters (String serverName, 
                int port)

Creates an instance of LDAPCertStoreParameters with the specified parameter values.

Parameters
serverName String: the DNS name of the LDAP server
port int: the port number of the LDAP server
Throws
NullPointerException if serverName is null

LDAPCertStoreParameters

Added in API level 1
LDAPCertStoreParameters (String serverName)

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

Parameters
serverName String: the DNS name of the LDAP server
Throws
NullPointerException if serverName is null

LDAPCertStoreParameters

Added in API level 1
LDAPCertStoreParameters ()

Creates an instance of LDAPCertStoreParameters with the default parameter values (server name "localhost", port 389).

Public methods

clone

Added in API level 1
Object clone ()

Returns 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.

Returns
Object the copy

getPort

Added in API level 1
int getPort ()

Returns the port number of the LDAP server.

Returns
int the port number

getServerName

Added in API level 1
String getServerName ()

Returns the DNS name of the LDAP server.

Returns
String the name (not null)

toString

Added in API level 1
String toString ()

Returns a formatted string describing the parameters.

Returns
String a formatted string describing the parameters

Hooray!