com.sun.jndi.ldap.Connection Java Examples

The following examples show how to use com.sun.jndi.ldap.Connection. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StartTlsResponseImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #2
Source File: StartTlsResponseImpl.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #3
Source File: StartTlsResponseImpl.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #4
Source File: StartTlsResponseImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #5
Source File: StartTlsResponseImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #6
Source File: StartTlsResponseImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #7
Source File: StartTlsResponseImpl.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #8
Source File: StartTlsResponseImpl.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #9
Source File: StartTlsResponseImpl.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #10
Source File: StartTlsResponseImpl.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #11
Source File: StartTlsResponseImpl.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #12
Source File: StartTlsResponseImpl.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}
 
Example #13
Source File: StartTlsResponseImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the connection for TLS to use. The TLS connection will be attached
 * to this connection.
 *
 * @param ldapConnection The non-null connection to use.
 * @param hostname The server's hostname. If null, the hostname used to
 * open the connection will be used instead.
 */
public void setConnection(Connection ldapConnection, String hostname) {
    this.ldapConnection = ldapConnection;
    this.hostname = (hostname != null) ? hostname : ldapConnection.host;
    originalInputStream = ldapConnection.inStream;
    originalOutputStream = ldapConnection.outStream;
}