public abstract class StartTlsResponse extends Object implements ExtendedResponse
Modifier and Type | Field and Description |
---|---|
static 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.
|
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.
|
public static final String OID
protected StartTlsResponse()
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 useIOException
- if communication fails for some reasonpublic abstract void close() throws IOException
IOException
- if communication fails for some reason