|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.naming.ldap.StartTlsResponse
public abstract class StartTlsResponse
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OID
Constructor Detail |
---|
protected StartTlsResponse()
Method Detail |
---|
public String getID()
OID
field.
getID
in interface ExtendedResponse
public byte[] getEncodedValue()
getEncodedValue
in interface ExtendedResponse
public abstract void setEnabledCipherSuites(String[] cipherSuites)
cipherSuites
- the list of suitesSSLSocketFactory.getSupportedCipherSuites()
public abstract void setHostnameVerifier(HostnameVerifier verifier)
negotiate()
.
verifier
- the hostname verifierpublic abstract SSLSession negotiate() throws IOException
IOException
- if communication fails for some reasonpublic abstract SSLSession negotiate(SSLSocketFactory factory) throws IOException
factory
- the socket factory to use
IOException
- if communication fails for some reasonpublic abstract void close() throws IOException
IOException
- if communication fails for some reason
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |