Module swim.io
Package swim.io

Class TlsSettings

  • All Implemented Interfaces:
    Debug

    public class TlsSettings
    extends Object
    implements Debug
    TLS configuration parameters.
    • Method Detail

      • sslContext

        public final SSLContext sslContext()
        Returns the factory used to create secure sockets.
      • sslContext

        public TlsSettings sslContext​(SSLContext sslContext)
        Returns a copy of these TlsSettings configured with the given sslContext for creating secure sockets.
      • clientAuth

        public final ClientAuth clientAuth()
        Returns the authentication requirement for incoming connections.
      • clientAuth

        public TlsSettings clientAuth​(ClientAuth clientAuth)
        Returns a copy of these TlsSettings configured with the given clientAuth authentication requirement for incoming connections.
      • cipherSuites

        public final Collection<String> cipherSuites()
        Returns the set of permitted cipher suites for secure socket connections, or null if the system defaults should be used.
      • cipherSuites

        public TlsSettings cipherSuites​(Collection<String> cipherSuites)
        Returns a copy of these TlsSettings configured with the given set of cipherSuites; cipherSuites may be null if the system defaults should be used.
      • protocols

        public final Collection<String> protocols()
        Returns the set of permitted secure socket layer protocols, or null if the system defaults should be used.
      • protocols

        public TlsSettings protocols​(Collection<String> protocols)
        Returns a copy of these TlsSettings configured with the given set of protocols; protocols may be null if the system defaults should be used.
      • toValue

        public Value toValue()
        Returns a structural Value representing these TlsSettings.
      • canEqual

        public boolean canEqual​(Object other)
        Returns true if these TlsSettings can possibly equal some other object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • standard

        public static TlsSettings standard()
        Returns the default TlsSettings instance.