Class

io.scalajs.nodejs.tls

TLSSocketOptions

Related Doc: package tls

Permalink

class TLSSocketOptions extends Object

TLS Socket Options

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
Object, Any, AnyRef, Any
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. All

Instance Constructors

  1. new TLSSocketOptions(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[Boolean] = js.undefined, SNICallback: UndefOr[Boolean] = js.undefined, session: UndefOr[Buffer] = js.undefined, requestOCSP: UndefOr[Boolean] = js.undefined, secureContext: UndefOr[Any] = js.undefined)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ALPNProtocols: UndefOr[Boolean]

    Permalink

    Optional, see tls.createServer()

  5. val NPNProtocols: UndefOr[Boolean]

    Permalink

    Optional, see tls.createServer()

  6. val SNICallback: UndefOr[Boolean]

    Permalink

    Optional, see tls.createServer()

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  17. val isServer: UndefOr[Boolean]

    Permalink

    The SSL/TLS protocol is asymetrical, TLSSockets must know if they are to behave as a server or a client.

    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.

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  22. val rejectUnauthorized: UndefOr[Boolean]

    Permalink

    Optional, see tls.createServer()

  23. val requestCert: UndefOr[Boolean]

    Permalink

    Whether to authenticate the remote peer by requesting a certificate.

    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.

  24. val requestOCSP: UndefOr[Boolean]

    Permalink

    <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

  25. val secureContext: UndefOr[Any]

    Permalink

    Optional TLS context object created with tls.createSecureContext().

    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.

  26. val server: UndefOr[net.Server]

    Permalink

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

  27. val session: UndefOr[Buffer]

    Permalink

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

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped