- java.lang.Object
-
- java.security.cert.LDAPCertStoreParameters
-
- All Implemented Interfaces:
- Cloneable, CertStoreParameters
public class LDAPCertStoreParameters extends Object implements CertStoreParameters
Parameters used as input for the LDAPCertStore
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.
- Since:
- 1.4
- See Also:
CertStore
-
-
Constructor Summary
Constructors Constructor and Description LDAPCertStoreParameters()
Creates an instance ofLDAPCertStoreParameters
with the default parameter values (server name "localhost", port 389).LDAPCertStoreParameters(String serverName)
Creates an instance ofLDAPCertStoreParameters
with the specified server name and a default port of 389.LDAPCertStoreParameters(String serverName, int port)
Creates an instance ofLDAPCertStoreParameters
with the specified parameter values.
-
Method Summary
Methods Modifier and Type Method and Description 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.
-
-
-
Constructor Detail
-
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName, int port)
Creates an instance ofLDAPCertStoreParameters
with the specified parameter values.- Parameters:
serverName
- the DNS name of the LDAP serverport
- the port number of the LDAP server- Throws:
NullPointerException
- ifserverName
isnull
-
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName)
Creates an instance ofLDAPCertStoreParameters
with the specified server name and a default port of 389.- Parameters:
serverName
- the DNS name of the LDAP server- Throws:
NullPointerException
- ifserverName
isnull
-
LDAPCertStoreParameters
public LDAPCertStoreParameters()
Creates an instance ofLDAPCertStoreParameters
with the default parameter values (server name "localhost", port 389).
-
-
Method Detail
-
getServerName
public String getServerName()
Returns the DNS name of the LDAP server.- Returns:
- the name (not
null
)
-
getPort
public int getPort()
Returns the port number of the LDAP server.- Returns:
- the port number
-
clone
public 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.- Specified by:
clone
in interfaceCertStoreParameters
- Overrides:
clone
in classObject
- Returns:
- the copy
- See Also:
Cloneable
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/security/cert/ldapcertstoreparameters.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.