class TLSSocketOptions extends Object
TLS Socket Options
- Annotations
- @ScalaJSDefined() @RawJSType()
- Alphabetic
- By Inheritance
- TLSSocketOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var ALPNProtocols: UndefOr[ALPNProtocols]
- var NPNProtocols: UndefOr[Boolean]
- var SNICallback: UndefOr[Function2[String, Function, Any]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- var enableTrace: UndefOr[Boolean]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- var isServer: UndefOr[Boolean]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var rejectUnauthorized: UndefOr[Boolean]
- var requestCert: UndefOr[Boolean]
- var requestOCSP: UndefOr[Boolean]
- var secureContext: UndefOr[SecureContext]
- var server: UndefOr[net.Server]
- var session: UndefOr[Buffer]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()