# LDAPCertStoreParameters

public class **LDAPCertStoreParameters** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [CertStoreParameters](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertStoreParameters.html) 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

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertStore.html`

### Public Constructor Summary

|---|---|
|   | [LDAPCertStoreParameters](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters(java.lang.String,%20int))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) serverName, int port) Creates an instance of `LDAPCertStoreParameters` with the specified parameter values. |
|   | [LDAPCertStoreParameters](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) serverName) Creates an instance of `LDAPCertStoreParameters` with the specified server name and a default port of 389. |
|   | [LDAPCertStoreParameters](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters())() Creates an instance of `LDAPCertStoreParameters` with the default parameter values (server name "localhost", port 389). |

### Public Method Summary

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#clone())() Returns a copy of this object. |
| int | [getPort](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#getPort())() Returns the port number of the LDAP server. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getServerName](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#getServerName())() Returns the DNS name of the LDAP server. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/LDAPCertStoreParameters.html#toString())() Returns a formatted string describing the parameters. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.security.cert.CertStoreParameters](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertStoreParameters.html)

|---|---|
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertStoreParameters.html#clone())() Makes a copy of this `CertStoreParameters`. |

## Public Constructors

#### public
**LDAPCertStoreParameters**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) serverName, int port)

Creates an instance of `LDAPCertStoreParameters` with the
specified parameter values.

##### Parameters

| serverName | the DNS name of the LDAP server |
| port | the port number of the LDAP server |
|---|---|

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if `serverName` is `null` |
|---|---|

#### public
**LDAPCertStoreParameters**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) serverName)

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

##### Parameters

| serverName | the DNS name of the LDAP server |
|---|---|

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if `serverName` is `null` |
|---|---|

#### public
**LDAPCertStoreParameters**
()

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

## Public Methods

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**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

- the copy

#### public int
**getPort**
()

Returns the port number of the LDAP server.

##### Returns

- the port number

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getServerName**
()

Returns the DNS name of the LDAP server.

##### Returns

- the name (not `null`)

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**toString**
()

Returns a formatted string describing the parameters.

##### Returns

- a formatted string describing the parameters