Name

StartTlsResponse

Synopsis

This class is used with LDAPv3 to estabish a TLS connection response over an existing LDAP connection. An instance of this class is returned by the extendedOperation() method of an LdapContext object when initiating a TLS connection.

                  
public abstract class StartTlsResponse implements ExtendedResponse {
// Protected Constructors
   protected StartTlsResponse();  
// Public Constants
   public static final String OID;                               // ="1.3.6.1.4.1.1466.20037”
                  // Public Instance Methods
   public abstract void close() throws IOException;  
   public abstract javax.net.ssl.SSLSession negotiate(
        ) throws IOException;  
   public abstract javax.net.ssl.SSLSession negotiate(
        javax.net.ssl.SSLSocketFactory factory) throws IOException;  
   public abstract void setEnabledCipherSuites(
        String[] suites);  
   public abstract void setHostnameVerifier(
        javax.net.ssl.HostnameVerifier verifier);  
// Methods Implementing ExtendedResponse
   public byte[] getEncodedValue();                      // constant
   public String getID();  
}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.