Package org.apache.pekko.stream
Class TLSProtocol.NegotiateNewSession
java.lang.Object
org.apache.pekko.stream.TLSProtocol.NegotiateNewSession
- All Implemented Interfaces:
Serializable,TLSProtocol.SslTlsOutbound,scala.Equals,scala.Product
- Direct Known Subclasses:
TLSProtocol.NegotiateNewSession$
- Enclosing class:
- TLSProtocol
public static class TLSProtocol.NegotiateNewSession
extends Object
implements TLSProtocol.SslTlsOutbound, scala.Product, Serializable
Initiate a new session negotiation. Any
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNegotiateNewSession(scala.Option<scala.collection.immutable.Seq<String>> enabledCipherSuites, scala.Option<scala.collection.immutable.Seq<String>> enabledProtocols, scala.Option<TLSClientAuth> clientAuth, scala.Option<SSLParameters> sslParameters) -
Method Summary
Modifier and TypeMethodDescriptionbooleanscala.Option<TLSClientAuth>copy(scala.Option<scala.collection.immutable.Seq<String>> enabledCipherSuites, scala.Option<scala.collection.immutable.Seq<String>> enabledProtocols, scala.Option<TLSClientAuth> clientAuth, scala.Option<SSLParameters> sslParameters) scala.Option<scala.collection.immutable.Seq<String>>scala.Option<scala.collection.immutable.Seq<String>>scala.Option<TLSClientAuth>scala.Option<SSLParameters>scala.Option<scala.collection.immutable.Seq<String>>scala.Option<scala.collection.immutable.Seq<String>>booleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.Option<SSLParameters>toString()withCipherSuites(String... s) Java API: Make a copy of this message with the givenenabledCipherSuites.withCipherSuites(scala.collection.immutable.Seq<String> s) Java API: Make a copy of this message with the givenenabledCipherSuites.Java API: Make a copy of this message with the givenTLSClientAuthsetting.Java API: Make a copy of this message with the givenSSLParameters.withProtocols(String... p) Java API: Make a copy of this message with the givenenabledProtocols.withProtocols(scala.collection.immutable.Seq<String> p) Java API: Make a copy of this message with the givenenabledProtocols.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
NegotiateNewSession
public NegotiateNewSession(scala.Option<scala.collection.immutable.Seq<String>> enabledCipherSuites, scala.Option<scala.collection.immutable.Seq<String>> enabledProtocols, scala.Option<TLSClientAuth> clientAuth, scala.Option<SSLParameters> sslParameters)
-
-
Method Details
-
withCipherSuites
Java API: Make a copy of this message with the givenenabledCipherSuites. -
withProtocols
Java API: Make a copy of this message with the givenenabledProtocols. -
enabledCipherSuites
-
enabledProtocols
-
clientAuth
-
sslParameters
-
withCipherSuites
Java API: Make a copy of this message with the givenenabledCipherSuites. -
withProtocols
Java API: Make a copy of this message with the givenenabledProtocols. -
withClientAuth
Java API: Make a copy of this message with the givenTLSClientAuthsetting. -
withParameters
Java API: Make a copy of this message with the givenSSLParameters. -
copy
public TLSProtocol.NegotiateNewSession copy(scala.Option<scala.collection.immutable.Seq<String>> enabledCipherSuites, scala.Option<scala.collection.immutable.Seq<String>> enabledProtocols, scala.Option<TLSClientAuth> clientAuth, scala.Option<SSLParameters> sslParameters) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
copy$default$4
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-