Class LDAPCertStoreParameters

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

public class LDAPCertStoreParameters
extends Object
implements CertStoreParameters
The parameters to initialize a LDAP CertStore instance.
  • Constructor Details

    • LDAPCertStoreParameters

      public LDAPCertStoreParameters​(String serverName, int port)
      Creates a new LDAPCertStoreParameters instance with the specified server name and port.
      Parameters:
      serverName - the LDAP server name.
      port - the port.
      Throws:
      NullPointerException - is serverName is null.
    • LDAPCertStoreParameters

      public LDAPCertStoreParameters()
      Creates a new LDAPCertStoreParameters instance with default parameters.

      The default parameters are server name "localhost" and port 389.

    • LDAPCertStoreParameters

      public LDAPCertStoreParameters​(String serverName)
      Creates a new LDAPCertStoreParameters instance with the specified server name and default port 389.
      Parameters:
      serverName - the LDAP server name.
      Throws:
      NullPointerException - if serverName is null.
  • Method Details

    • clone

      public Object clone()
      Clones this LDAPCertStoreParameters instance.
      Specified by:
      clone in interface CertStoreParameters
      Overrides:
      clone in class Object
      Returns:
      the cloned instance.
    • getPort

      public int getPort()
      Returns the LDAP server port.
      Returns:
      the LDAP server port.
    • getServerName

      public String getServerName()
      Returns the LDAP server name.
      Returns:
      the LDAP server name.
    • toString

      public String toString()
      Returns the string representation of this LDAPCertStoreParameters instance.
      Overrides:
      toString in class Object
      Returns:
      the string representation of this LDAPCertStoreParameters instance.