java.lang.Object | |
↳ | 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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of
LDAPCertStoreParameters with the
specified parameter values. | |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a copy of this object.
| |||||||||||
Returns the port number of the LDAP server.
| |||||||||||
Returns the DNS name of the LDAP server.
| |||||||||||
Returns a formatted string describing the parameters.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.security.cert.CertStoreParameters
|
Creates an instance of LDAPCertStoreParameters
with the
specified parameter values.
serverName | the DNS name of the LDAP server |
---|---|
port | the port number of the LDAP server |
NullPointerException | if serverName is
null
|
---|
Creates an instance of LDAPCertStoreParameters
with the
specified server name and a default port of 389.
serverName | the DNS name of the LDAP server |
---|
NullPointerException | if serverName is
null
|
---|
Creates an instance of LDAPCertStoreParameters
with the
default parameter values (server name "localhost", port 389).
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 port number of the LDAP server.
Returns a formatted string describing the parameters.