Package akka.stream
Class TLSProtocol.NegotiateNewSession
- java.lang.Object
-
- akka.stream.TLSProtocol.NegotiateNewSession
-
- All Implemented Interfaces:
TLSProtocol.SslTlsOutbound
,java.io.Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
TLSProtocol.NegotiateNewSession$
- Enclosing class:
- TLSProtocol
public static class TLSProtocol.NegotiateNewSession extends java.lang.Object implements TLSProtocol.SslTlsOutbound, scala.Product, java.io.Serializable
Initiate a new session negotiation. AnyTLSProtocol.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 toSSLEngine::setEnabledCipherSuites()
-enabledProtocols
will be passed toSSLEngine::setEnabledProtocols()
-clientAuth
will be passed toSSLEngine::setWantClientAuth()
orSSLEngine.setNeedClientAuth()
, respectively -sslParameters
will be passed toSSLEngine::setSSLParameters()
Please note that passing
clientAuth = None
means that no change is done on client authentication requirements whileclientAuth = Some(ClientAuth.None)
switches off client authentication.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
scala.Option<TLSClientAuth>
clientAuth()
TLSProtocol.NegotiateNewSession
copy(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)
scala.Option<scala.collection.immutable.Seq<java.lang.String>>
copy$default$1()
scala.Option<scala.collection.immutable.Seq<java.lang.String>>
copy$default$2()
scala.Option<TLSClientAuth>
copy$default$3()
scala.Option<javax.net.ssl.SSLParameters>
copy$default$4()
scala.Option<scala.collection.immutable.Seq<java.lang.String>>
enabledCipherSuites()
scala.Option<scala.collection.immutable.Seq<java.lang.String>>
enabledProtocols()
boolean
equals(java.lang.Object x$1)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
scala.Option<javax.net.ssl.SSLParameters>
sslParameters()
java.lang.String
toString()
TLSProtocol.NegotiateNewSession
withCipherSuites(java.lang.String... s)
Java API: Make a copy of this message with the givenenabledCipherSuites
.TLSProtocol.NegotiateNewSession
withCipherSuites(scala.collection.immutable.Seq<java.lang.String> s)
Java API: Make a copy of this message with the givenenabledCipherSuites
.TLSProtocol.NegotiateNewSession
withClientAuth(TLSClientAuth ca)
Java API: Make a copy of this message with the givenTLSClientAuth
setting.TLSProtocol.NegotiateNewSession
withParameters(javax.net.ssl.SSLParameters p)
Java API: Make a copy of this message with the givenSSLParameters
.TLSProtocol.NegotiateNewSession
withProtocols(java.lang.String... p)
Java API: Make a copy of this message with the givenenabledProtocols
.TLSProtocol.NegotiateNewSession
withProtocols(scala.collection.immutable.Seq<java.lang.String> p)
Java API: Make a copy of this message with the givenenabledProtocols
.
-
-
-
Constructor Detail
-
NegotiateNewSession
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)
-
-
Method Detail
-
withCipherSuites
public TLSProtocol.NegotiateNewSession withCipherSuites(java.lang.String... s)
Java API: Make a copy of this message with the givenenabledCipherSuites
.
-
withProtocols
public TLSProtocol.NegotiateNewSession withProtocols(java.lang.String... p)
Java API: Make a copy of this message with the givenenabledProtocols
.
-
enabledCipherSuites
public scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites()
-
enabledProtocols
public scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols()
-
clientAuth
public scala.Option<TLSClientAuth> clientAuth()
-
sslParameters
public scala.Option<javax.net.ssl.SSLParameters> sslParameters()
-
withCipherSuites
public TLSProtocol.NegotiateNewSession withCipherSuites(scala.collection.immutable.Seq<java.lang.String> s)
Java API: Make a copy of this message with the givenenabledCipherSuites
.
-
withProtocols
public TLSProtocol.NegotiateNewSession withProtocols(scala.collection.immutable.Seq<java.lang.String> p)
Java API: Make a copy of this message with the givenenabledProtocols
.
-
withClientAuth
public TLSProtocol.NegotiateNewSession withClientAuth(TLSClientAuth ca)
Java API: Make a copy of this message with the givenTLSClientAuth
setting.
-
withParameters
public TLSProtocol.NegotiateNewSession withParameters(javax.net.ssl.SSLParameters p)
Java API: Make a copy of this message with the givenSSLParameters
.
-
copy
public TLSProtocol.NegotiateNewSession copy(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)
-
copy$default$1
public scala.Option<scala.collection.immutable.Seq<java.lang.String>> copy$default$1()
-
copy$default$2
public scala.Option<scala.collection.immutable.Seq<java.lang.String>> copy$default$2()
-
copy$default$3
public scala.Option<TLSClientAuth> copy$default$3()
-
copy$default$4
public scala.Option<javax.net.ssl.SSLParameters> copy$default$4()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-