public static class TLSProtocol.NegotiateNewSession extends java.lang.Object implements TLSProtocol.SslTlsOutbound, scala.Product, scala.Serializable
TLSProtocol.SendBytes
commands following
this one will be held back (i.e. back-pressured) until the new handshake is
completed, meaning that the bytes following this message will be encrypted
according to the requirements outlined here.
Each of the values in this message is optional and will have the following effect if provided:
- enabledCipherSuites
will be passed to SSLEngine::setEnabledCipherSuites()
- enabledProtocols
will be passed to SSLEngine::setEnabledProtocols()
- clientAuth
will be passed to SSLEngine::setWantClientAuth()
or SSLEngine.setNeedClientAuth()
, respectively
- sslParameters
will be passed to SSLEngine::setSSLParameters()
Please note that passing clientAuth = None
means that no change is done
on client authentication requirements while clientAuth = Some(ClientAuth.None)
switches off client authentication.
Constructor and Description |
---|
NegotiateNewSession(scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites,
scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols,
scala.Option<TLSClientAuth> clientAuth,
scala.Option<javax.net.ssl.SSLParameters> sslParameters) |
Modifier and Type | Method and Description |
---|---|
scala.Option<TLSClientAuth> |
clientAuth() |
scala.Option<scala.collection.immutable.Seq<java.lang.String>> |
enabledCipherSuites() |
scala.Option<scala.collection.immutable.Seq<java.lang.String>> |
enabledProtocols() |
scala.Option<javax.net.ssl.SSLParameters> |
sslParameters() |
TLSProtocol.NegotiateNewSession |
withCipherSuites(scala.collection.Seq<java.lang.String> s)
Java API: Make a copy of this message with the given
enabledCipherSuites . |
TLSProtocol.NegotiateNewSession |
withCipherSuites(java.lang.String... s)
Java API: Make a copy of this message with the given
enabledCipherSuites . |
TLSProtocol.NegotiateNewSession |
withClientAuth(TLSClientAuth ca)
Java API: Make a copy of this message with the given
TLSClientAuth setting. |
TLSProtocol.NegotiateNewSession |
withParameters(javax.net.ssl.SSLParameters p)
Java API: Make a copy of this message with the given
SSLParameters . |
TLSProtocol.NegotiateNewSession |
withProtocols(scala.collection.Seq<java.lang.String> p)
Java API: Make a copy of this message with the given
enabledProtocols . |
TLSProtocol.NegotiateNewSession |
withProtocols(java.lang.String... p)
Java API: Make a copy of this message with the given
enabledProtocols . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public NegotiateNewSession(scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites, scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols, scala.Option<TLSClientAuth> clientAuth, scala.Option<javax.net.ssl.SSLParameters> sslParameters)
public TLSProtocol.NegotiateNewSession withCipherSuites(java.lang.String... s)
enabledCipherSuites
.s
- (undocumented)public TLSProtocol.NegotiateNewSession withProtocols(java.lang.String... p)
enabledProtocols
.p
- (undocumented)public scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites()
public scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols()
public scala.Option<TLSClientAuth> clientAuth()
public scala.Option<javax.net.ssl.SSLParameters> sslParameters()
public TLSProtocol.NegotiateNewSession withCipherSuites(scala.collection.Seq<java.lang.String> s)
enabledCipherSuites
.s
- (undocumented)public TLSProtocol.NegotiateNewSession withProtocols(scala.collection.Seq<java.lang.String> p)
enabledProtocols
.p
- (undocumented)public TLSProtocol.NegotiateNewSession withClientAuth(TLSClientAuth ca)
TLSClientAuth
setting.ca
- (undocumented)public TLSProtocol.NegotiateNewSession withParameters(javax.net.ssl.SSLParameters p)
SSLParameters
.p
- (undocumented)