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.
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. |
public LDAPCertStoreParameters(String serverName, int port)
LDAPCertStoreParameters
with the specified parameter values.serverName
- the DNS name of the LDAP serverport
- the port number of the LDAP serverNullPointerException
- if serverName
is null
public LDAPCertStoreParameters(String serverName)
LDAPCertStoreParameters
with the specified server name and a default port of 389.serverName
- the DNS name of the LDAP serverNullPointerException
- if serverName
is null
public LDAPCertStoreParameters()
LDAPCertStoreParameters
with the default parameter values (server name "localhost", port 389).public String getServerName()
null
)public int getPort()
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.
clone
in interface CertStoreParameters
clone
in class Object
public String toString()
© 1993, 2023, 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.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/cert/LDAPCertStoreParameters.html