Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 592
نمايش فراداده

This concrete implementation of CertStoreParameters is used when creating a CertStore object of type "LDAP". It specifies the hostname of the LDAP server to connect to and, optionally, the port to connect on.

Figure 14-65. java.security.cert.LDAPCertStoreParameters

public class 

LDAPCertStoreParameters implements CertStoreParameters { // Public Constructors public

LDAPCertStoreParameters ( ); public

LDAPCertStoreParameters (String

serverName ); public

LDAPCertStoreParameters (String

serverName , int

port ); // Public Instance Methods public int

getPort ( ); default:389 public String

getServerName ( ); default:"localhost" // Methods Implementing CertStoreParameters public Object

clone ( ); // Public Methods Overriding Object public String

toString ( ); }