Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

LDAPCertStoreParameters

open class LDAPCertStoreParameters : CertStoreParameters
kotlin.Any
   ↳ 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.

Summary

Public constructors
<init>(serverName: String!, port: Int)

Creates an instance of LDAPCertStoreParameters with the specified parameter values.

<init>(serverName: String!)

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

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

Public methods
open Any

Returns a copy of this object.

open Int

Returns the port number of the LDAP server.

open String!

Returns the DNS name of the LDAP server.

open String

Returns a formatted string describing the parameters.

Public constructors

<init>

Added in API level 1
LDAPCertStoreParameters(
    serverName: String!,
    port: Int)

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
Exceptions
java.lang.NullPointerException if serverName is null

<init>

Added in API level 1
LDAPCertStoreParameters(serverName: String!)

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
Exceptions
java.lang.NullPointerException if serverName is null

<init>

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
open fun clone(): Any

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.

Return
Any the copy
Exceptions
java.lang.CloneNotSupportedException if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

getPort

Added in API level 1
open fun getPort(): Int

Returns the port number of the LDAP server.

Return
Int the port number

getServerName

Added in API level 1
open fun getServerName(): String!

Returns the DNS name of the LDAP server.

Return
String! the name (not null)

toString

Added in API level 1
open fun toString(): String

Returns a formatted string describing the parameters.

Return
String a formatted string describing the parameters