Class LDAPCertStoreParameters
- All Implemented Interfaces:
Cloneable, CertStoreParameters
public class LDAPCertStoreParameters extends Object implements CertStoreParameters
CertStore algorithm. This class is used to provide necessary configuration parameters (server name and port number) to implementations of the LDAP CertStore algorithm. However, if you are retrieving certificates or CRLs from an ldap URI as specified by RFC 5280, use the URICertStoreParameters instead, as the URI may contain additional information such as the distinguished name that will help the LDAP CertStore find the specific certificates and CRLs.
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.
- Since:
- 1.4
- See Also:
Constructor Summary
| Constructor | Description |
|---|---|
LDAPCertStoreParameters() |
Creates an instance of LDAPCertStoreParameters with the default parameter values (server name "localhost", port 389). |
LDAPCertStoreParameters |
Creates an instance of LDAPCertStoreParameters with the specified server name and a default port of 389. |
LDAPCertStoreParameters |
Creates an instance of LDAPCertStoreParameters with the specified parameter values. |
Method Summary
Methods declared in class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals |
Indicates whether some other object is "equal to" this one. |
protected void |
finalize() |
Deprecated, for removal: This API element is subject to removal in a future version. Finalization is deprecated and subject to removal in a future release. |
final Class |
getClass() |
Returns the runtime class of this Object. |
int |
hashCode() |
Returns a hash code value for this object. |
final void |
notify() |
Wakes up a single thread that is waiting on this object's monitor. |
final void |
notifyAll() |
Wakes up all threads that are waiting on this object's monitor. |
final void |
wait() |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted. |
final void |
wait |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. |
final void |
wait |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. |
Constructor Details
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName, int port)
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- ifserverNameisnull
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName)
LDAPCertStoreParameters with the specified server name and a default port of 389.- Parameters:
-
serverName- the DNS name of the LDAP server - Throws:
-
NullPointerException- ifserverNameisnull
LDAPCertStoreParameters
public LDAPCertStoreParameters()
LDAPCertStoreParameters with the default parameter values (server name "localhost", port 389).Method Details
getServerName
public String getServerName()
- Returns:
- the name (not
null)
getPort
public int getPort()
- Returns:
- the port number
clone
public Object clone()
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.
- Specified by:
-
clonein interfaceCertStoreParameters - Overrides:
-
clonein classObject - Returns:
- the copy
- See Also:
toString
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.