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.SendBytescommands 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:
-
enabledCipherSuiteswill be passed toSSLEngine::setEnabledCipherSuites()-enabledProtocolswill be passed toSSLEngine::setEnabledProtocols()-clientAuthwill be passed toSSLEngine::setWantClientAuth()orSSLEngine.setNeedClientAuth(), respectively -sslParameterswill be passed toSSLEngine::setSSLParameters()Please note that passing
clientAuth = Nonemeans 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 booleancanEqual(java.lang.Object x$1)scala.Option<TLSClientAuth>clientAuth()TLSProtocol.NegotiateNewSessioncopy(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()booleanequals(java.lang.Object x$1)inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()scala.Option<javax.net.ssl.SSLParameters>sslParameters()java.lang.StringtoString()TLSProtocol.NegotiateNewSessionwithCipherSuites(java.lang.String... s)Java API: Make a copy of this message with the givenenabledCipherSuites.TLSProtocol.NegotiateNewSessionwithCipherSuites(scala.collection.immutable.Seq<java.lang.String> s)Java API: Make a copy of this message with the givenenabledCipherSuites.TLSProtocol.NegotiateNewSessionwithClientAuth(TLSClientAuth ca)Java API: Make a copy of this message with the givenTLSClientAuthsetting.TLSProtocol.NegotiateNewSessionwithParameters(javax.net.ssl.SSLParameters p)Java API: Make a copy of this message with the givenSSLParameters.TLSProtocol.NegotiateNewSessionwithProtocols(java.lang.String... p)Java API: Make a copy of this message with the givenenabledProtocols.TLSProtocol.NegotiateNewSessionwithProtocols(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 givenTLSClientAuthsetting.
-
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:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-