Package akka.stream

Class TLSProtocol.NegotiateNewSession

  • All Implemented Interfaces:
    TLSProtocol.SslTlsOutbound, java.io.Serializable, scala.Equals, scala.Product, scala.Serializable
    Direct Known Subclasses:
    TLSProtocol.NegotiateNewSession$
    Enclosing class:
    TLSProtocol

    public static class TLSProtocol.NegotiateNewSession
    extends java.lang.Object
    implements TLSProtocol.SslTlsOutbound, scala.Product, scala.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:
    Serialized Form
    • 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 given enabledCipherSuites.
        Parameters:
        s - (undocumented)
        Returns:
        (undocumented)
      • withProtocols

        public TLSProtocol.NegotiateNewSession withProtocols​(java.lang.String... p)
        Java API: Make a copy of this message with the given enabledProtocols.
        Parameters:
        p - (undocumented)
        Returns:
        (undocumented)
      • enabledCipherSuites

        public scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites()
      • enabledProtocols

        public scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols()
      • sslParameters

        public scala.Option<javax.net.ssl.SSLParameters> sslParameters()
      • withCipherSuites

        public TLSProtocol.NegotiateNewSession withCipherSuites​(scala.collection.Seq<java.lang.String> s)
        Java API: Make a copy of this message with the given enabledCipherSuites.
        Parameters:
        s - (undocumented)
        Returns:
        (undocumented)
      • withProtocols

        public TLSProtocol.NegotiateNewSession withProtocols​(scala.collection.Seq<java.lang.String> p)
        Java API: Make a copy of this message with the given enabledProtocols.
        Parameters:
        p - (undocumented)
        Returns:
        (undocumented)
      • withParameters

        public TLSProtocol.NegotiateNewSession withParameters​(javax.net.ssl.SSLParameters p)
        Java API: Make a copy of this message with the given SSLParameters.
        Parameters:
        p - (undocumented)
        Returns:
        (undocumented)
      • 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 interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object