Class TLSProtocol.NegotiateNewSession

  • All Implemented Interfaces:
    TLSProtocol.SslTlsOutbound,, scala.Equals, scala.Product
    Direct Known Subclasses:
    Enclosing class:

    public static class TLSProtocol.NegotiateNewSession
    extends java.lang.Object
    implements TLSProtocol.SslTlsOutbound, scala.Product,
    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<> sslParameters)
    • Method Detail

      • withCipherSuites

        public TLSProtocol.NegotiateNewSession withCipherSuites​(java.lang.String... s)
        Java API: Make a copy of this message with the given enabledCipherSuites.
      • withProtocols

        public TLSProtocol.NegotiateNewSession withProtocols​(java.lang.String... p)
        Java API: Make a copy of this message with the given enabledProtocols.
      • 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<> sslParameters()
      • withCipherSuites

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

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

        public TLSProtocol.NegotiateNewSession withParameters​( p)
        Java API: Make a copy of this message with the given SSLParameters.
      • 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<> 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<> 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
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

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

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

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