Creates a new {@code LDAPCertStoreParameters} instance with the specified server name and port.paramserverName the LDAP server name.paramport the port.throwsNullPointerException is {@code serverName} is {@code null}.sinceAndroid 1.0 this.port = port; this.serverName = serverName; if (this.serverName == null) { throw new NullPointerException(); }
this.port = port; this.serverName = serverName; if (this.serverName == null) { throw new NullPointerException(); }
Creates a new {@code LDAPCertStoreParameters} instance with default parameters. The default parameters are server name "localhost" and port 389. sinceAndroid 1.0 this.serverName = DEFAULT_LDAP_SERVER_NAME; this.port = DEFAULT_LDAP_PORT;
The default parameters are server name "localhost" and port 389.
this.serverName = DEFAULT_LDAP_SERVER_NAME; this.port = DEFAULT_LDAP_PORT;
Creates a new {@code LDAPCertStoreParameters} instance with the specified server name and default port 389.paramserverName the LDAP server name.throwsNullPointerException if {@code serverName} is {@code null}.sinceAndroid 1.0 this.port = DEFAULT_LDAP_PORT; this.serverName = serverName; if (this.serverName == null) { throw new NullPointerException(); }
this.port = DEFAULT_LDAP_PORT; this.serverName = serverName; if (this.serverName == null) { throw new NullPointerException(); }
Clones this {@code LDAPCertStoreParameters} instance.returnthe cloned instance.sinceAndroid 1.0 return new LDAPCertStoreParameters(serverName, port);
return new LDAPCertStoreParameters(serverName, port);
Returns the LDAP server port.returnthe LDAP server port.sinceAndroid 1.0 return port;
return port;
Returns the LDAP server name.returnthe LDAP server name.sinceAndroid 1.0 return serverName;
return serverName;
Returns the string representation of this {@code LDAPCertStoreParameters} instance.returnthe string representation of this {@code LDAPCertStoreParameters} instance.sinceAndroid 1.0 StringBuffer sb = new StringBuffer("LDAPCertStoreParameters: [\n serverName: "); //$NON-NLS-1$ sb.append(getServerName()); sb.append("\n port: "); //$NON-NLS-1$ sb.append(getPort()); sb.append("\n]"); //$NON-NLS-1$ return sb.toString();
StringBuffer sb = new StringBuffer("LDAPCertStoreParameters: [\n serverName: "); //$NON-NLS-1$ sb.append(getServerName()); sb.append("\n port: "); //$NON-NLS-1$ sb.append(getPort()); sb.append("\n]"); //$NON-NLS-1$ return sb.toString();