java.security.cert
Class LDAPCertStoreParameters

java.lang.Object
  extended by java.security.cert.LDAPCertStoreParameters
All Implemented Interfaces:
Cloneable, CertStoreParameters

public class LDAPCertStoreParameters
extends Object
implements CertStoreParameters

Parameters for CertStores that are retrieved via the lightweight directory access protocol (LDAP).

See Also:
CertStore

Constructor Summary
LDAPCertStoreParameters()
          Create a new LDAPCertStoreParameters object, with a servername of "localhost" and a port of 389.
LDAPCertStoreParameters(String serverName)
          Create a new LDAPCertStoreParameters object, with a specified server name and a port of 389.
LDAPCertStoreParameters(String serverName, int port)
          Create a new LDAPCertStoreParameters object, with a specified server name and port.
 
Method Summary
 Object clone()
          This method may be called to create a new copy of the Object.
 int getPort()
          Return the port.
 String getServerName()
          Return the server name.
 String toString()
          Return a string representation of these parameters.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPCertStoreParameters

public LDAPCertStoreParameters()
Create a new LDAPCertStoreParameters object, with a servername of "localhost" and a port of 389.


LDAPCertStoreParameters

public LDAPCertStoreParameters(String serverName)
Create a new LDAPCertStoreParameters object, with a specified server name and a port of 389.

Parameters:
serverName - The LDAP server name.
Throws:
NullPointerException - If serverName is null.

LDAPCertStoreParameters

public LDAPCertStoreParameters(String serverName,
                               int port)
Create a new LDAPCertStoreParameters object, with a specified server name and port.

Parameters:
serverName - The LDAP server name.
port - The LDAP port.
Throws:
NullPointerException - If serverName is null.
Method Detail

clone

public Object clone()
Description copied from class: Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object).

If the Object you call clone() on does not implement Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 

Specified by:
clone in interface CertStoreParameters
Overrides:
clone in class Object
Returns:
a copy of the Object
See Also:
Cloneable

getServerName

public String getServerName()
Return the server name.

Returns:
The server name.

getPort

public int getPort()
Return the port.

Returns:
the port.

toString

public String toString()
Return a string representation of these parameters.

Overrides:
toString in class Object
Returns:
The string representation of these parameters.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)