public abstract class StartTlsResponse extends java.lang.Object implements ExtendedResponse
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OID
The assigned object identifier for this response.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StartTlsResponse()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close the connection.
|
byte[] |
getEncodedValue()
Return the encoded value.
|
java.lang.String |
getID()
Return the response identifier.
|
abstract javax.net.ssl.SSLSession |
negotiate()
Negotiate the TLS session using the default SSL socket factory.
|
abstract javax.net.ssl.SSLSession |
negotiate(javax.net.ssl.SSLSocketFactory factory)
Negotiate the TLS session using the supplied SSL socket factory.
|
abstract void |
setEnabledCipherSuites(java.lang.String[] cipherSuites)
Set the list of cipher suites to use.
|
abstract void |
setHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
Set the hostname verifier to use.
|
public static final java.lang.String OID
protected StartTlsResponse()
public java.lang.String getID()
OID field.getID in interface ExtendedResponsepublic byte[] getEncodedValue()
getEncodedValue in interface ExtendedResponsepublic abstract void setEnabledCipherSuites(java.lang.String[] cipherSuites)
cipherSuites - the list of suitesSSLSocketFactory.getSupportedCipherSuites()public abstract void setHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
negotiate().verifier - the hostname verifierpublic abstract javax.net.ssl.SSLSession negotiate() throws java.io.IOException
java.io.IOException - if communication fails for some reasonpublic abstract javax.net.ssl.SSLSession negotiate(javax.net.ssl.SSLSocketFactory factory) throws java.io.IOException
factory - the socket factory to usejava.io.IOException - if communication fails for some reasonpublic abstract void close() throws java.io.IOException
java.io.IOException - if communication fails for some reason