LDAPCertStoreParameters (Java 2 Platform SE 5.0) (original) (raw)
java.security.cert
Class LDAPCertStoreParameters
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 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.
Since:
1.4
See Also:
Constructor Summary |
---|
LDAPCertStoreParameters() Creates an instance of LDAPCertStoreParameters with the default parameter values (server name "localhost", port 389). |
LDAPCertStoreParameters(String serverName) Creates an instance of LDAPCertStoreParameters with the specified server name and a default port of 389. |
[LDAPCertStoreParameters](../../../java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters%28java.lang.String, int%29)(String serverName, int port) Creates an instance of LDAPCertStoreParameters with the specified parameter values. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, [wait](../../../java/lang/Object.html#wait%28long, int%29) |
Constructor Detail |
---|
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName, int port)
Creates an instance of 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](../../../java/lang/NullPointerException.html "class in java.lang")
- if serverName
isnull
LDAPCertStoreParameters
public LDAPCertStoreParameters(String serverName)
Creates an instance of LDAPCertStoreParameters
with the specified server name and a default port of 389.
Parameters:
serverName
- the DNS name of the LDAP server
Throws:
[NullPointerException](../../../java/lang/NullPointerException.html "class in java.lang")
- if serverName
isnull
LDAPCertStoreParameters
public LDAPCertStoreParameters()
Creates an instance of LDAPCertStoreParameters
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](../../../java/security/cert/CertStoreParameters.html#clone%28%29)
in interface [CertStoreParameters](../../../java/security/cert/CertStoreParameters.html "interface in java.security.cert")
Overrides:
[clone](../../../java/lang/Object.html#clone%28%29)
in class [Object](../../../java/lang/Object.html "class in java.lang")
Returns:
the copy
See Also:
toString
public String toString()
Returns a formatted string describing the parameters.
Overrides:
[toString](../../../java/lang/Object.html#toString%28%29)
in class [Object](../../../java/lang/Object.html "class in java.lang")
Returns:
a formatted string describing the parameters
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.