javax.naming.ldap
public abstract class StartTlsResponse extends Object implements ExtendedResponse
Since: 1.4
| Field Summary | |
|---|---|
| static String | OID
The assigned object identifier for this response. |
| Constructor Summary | |
|---|---|
| protected | StartTlsResponse()
Create a new instance. |
| Method Summary | |
|---|---|
| abstract void | close()
Close the connection. |
| byte[] | getEncodedValue()
Return the encoded value. |
| String | getID()
Return the response identifier. |
| abstract SSLSession | negotiate()
Negotiate the TLS session using the default SSL socket factory. |
| abstract SSLSession | negotiate(SSLSocketFactory factory)
Negotiate the TLS session using the supplied SSL socket factory. |
| abstract void | setEnabledCipherSuites(String[] cipherSuites)
Set the list of cipher suites to use. |
| abstract void | setHostnameVerifier(HostnameVerifier verifier)
Set the hostname verifier to use. |
Throws: IOException if communication fails for some reason
Returns: the SSL session
Throws: IOException if communication fails for some reason
Parameters: factory the socket factory to use
Returns: the SSL session
Throws: IOException if communication fails for some reason
Parameters: cipherSuites the list of suites
See Also: getSupportedCipherSuites
Parameters: verifier the hostname verifier