Packages

c

io.scalajs.nodejs.tls

TLSSocketOptions

class TLSSocketOptions extends Object

TLS Socket Options

Annotations
@ScalaJSDefined() @RawJSType()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TLSSocketOptions
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TLSSocketOptions(enableTrace: UndefOr[Boolean] = js.undefined, isServer: UndefOr[Boolean] = js.undefined, server: UndefOr[net.Server] = js.undefined, requestCert: UndefOr[Boolean] = js.undefined, rejectUnauthorized: UndefOr[Boolean] = js.undefined, NPNProtocols: UndefOr[Boolean] = js.undefined, ALPNProtocols: UndefOr[ALPNProtocols] = js.undefined, SNICallback: UndefOr[Function2[String, Function, Any]] = js.undefined, session: UndefOr[Buffer] = js.undefined, requestOCSP: UndefOr[Boolean] = js.undefined, secureContext: UndefOr[SecureContext] = js.undefined)

    isServer

    The SSL/TLS protocol is asymetrical, TLSSockets must know if they are to behave as a server or a client. If true the TLS socket will be instantiated as a server. Defaults to false.

    server

    <net.Server> An optional net.Server instance.

    requestCert

    Whether to authenticate the remote peer by requesting a certificate. Clients always request a server certificate. Servers (isServer is true) may optionally set requestCert to true to request a client certificate.

    rejectUnauthorized

    Optional, see tls.createServer()

    NPNProtocols

    Optional, see tls.createServer()

    ALPNProtocols

    Optional, see tls.createServer()

    SNICallback

    Optional, see tls.createServer()

    session

    <Buffer> An optional Buffer instance containing a TLS session.

    requestOCSP

    <boolean> If true, specifies that the OCSP status request extension will be added to the client hello and an 'OCSPResponse' event will be emitted on the socket before establishing a secure communication

    secureContext

    Optional TLS context object created with tls.createSecureContext(). If a secureContext is not provided, one will be created by calling tls.createSecureContext() with no options.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var ALPNProtocols: UndefOr[ALPNProtocols]
  5. var NPNProtocols: UndefOr[Boolean]
  6. var SNICallback: UndefOr[Function2[String, Function, Any]]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. var enableTrace: UndefOr[Boolean]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  17. var isServer: UndefOr[Boolean]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  22. var rejectUnauthorized: UndefOr[Boolean]
  23. var requestCert: UndefOr[Boolean]
  24. var requestOCSP: UndefOr[Boolean]
  25. var secureContext: UndefOr[SecureContext]
  26. var server: UndefOr[net.Server]
  27. var session: UndefOr[Buffer]
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toLocaleString(): String
    Definition Classes
    Object
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def valueOf(): Any
    Definition Classes
    Object
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped