fs2.internal.jsdeps.node.tlsMod

Type members

Classlikes

@native @JSType
trait Certificate extends StObject
Companion
object
object Certificate
Companion
class
@native @JSType
trait CipherNameAndProtocol extends StObject
Companion
object
@native @JSType
trait CommonConnectionOptions extends StObject
Companion
object
@native @JSType
Companion
object
Companion
class
@native @JSType
trait DetailedPeerCertificate extends StObject with PeerCertificate
Companion
object
@native @JSType
trait EphemeralKeyInfo extends StObject
Companion
object
Companion
class
@native @JSType
trait KeyObject extends StObject
Companion
object
object KeyObject
Companion
class
@native @JSType
trait PSKCallbackNegotation extends StObject
Companion
object
@native @JSType
trait PeerCertificate extends StObject
Companion
object
Companion
class
@native @JSType
trait PxfObject extends StObject
Companion
object
object PxfObject
Companion
class
@native @JSType
trait SecureContext extends StObject
Companion
object
Companion
class
@native @JSType
trait SecureContextOptions extends StObject
Companion
object
Companion
class
@native @JSType
trait SecurePair extends StObject
Companion
object
object SecurePair
Companion
class
@JSType
trait SecureVersion extends StObject
Companion
object
Companion
class
@JSImport("tls", "Server") @native @JSType
class Server() extends StObject
@JSImport("tls", "TLSSocket") @native @JSType
class TLSSocket extends StObject
@native @JSType
Companion
object
Companion
class
@native @JSType
trait TlsOptions extends StObject with SecureContextOptions with CommonConnectionOptions with ServerOpts
Companion
object
object TlsOptions
Companion
class
@JSImport("tls") @native @JSType
object ^ extends StObject

Value members

Concrete methods

@inline
def CLIENT_RENEG_LIMIT: Double
@inline
def CLIENT_RENEG_WINDOW: Double
@inline
def DEFAULT_ECDH_CURVE: String

The default curve name to use for ECDH key agreement in a tls server. The default value is 'auto'. See tls.createSecureContext() for further information.

The default curve name to use for ECDH key agreement in a tls server. The default value is 'auto'. See tls.createSecureContext() for further information.

@inline
def DEFAULT_ECDH_CURVE_=(x: String): Unit
@inline

The default value of the maxVersion option of tls.createSecureContext(). It can be assigned any of the supported TLS protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to 'TLSv1.3'. If multiple of the options are provided, the highest maximum is used.

The default value of the maxVersion option of tls.createSecureContext(). It can be assigned any of the supported TLS protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to 'TLSv1.3'. If multiple of the options are provided, the highest maximum is used.

@inline
@inline

The default value of the minVersion option of tls.createSecureContext(). It can be assigned any of the supported TLS protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless changed using CLI options. Using --tls-min-v1.0 sets the default to 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.

The default value of the minVersion option of tls.createSecureContext(). It can be assigned any of the supported TLS protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless changed using CLI options. Using --tls-min-v1.0 sets the default to 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.

@inline
@inline
def checkServerIdentity(host: String, cert: PeerCertificate): UndefOr[Error]
@inline
@inline
def connect(options: ConnectionOptions, secureConnectListener: Function0[Unit]): TLSSocket
@inline
def connect(port: Double): TLSSocket
@inline
def connect(port: Double, host: String): TLSSocket
@inline
def connect(port: Double, host: String, options: ConnectionOptions): TLSSocket
@inline
def connect(port: Double, host: String, options: ConnectionOptions, secureConnectListener: Function0[Unit]): TLSSocket
@inline
def connect(port: Double, host: String, options: Unit, secureConnectListener: Function0[Unit]): TLSSocket
@inline
def connect(port: Double, host: Unit, options: ConnectionOptions): TLSSocket
@inline
def connect(port: Double, host: Unit, options: ConnectionOptions, secureConnectListener: Function0[Unit]): TLSSocket
@inline
def connect(port: Double, host: Unit, options: Unit, secureConnectListener: Function0[Unit]): TLSSocket
@inline
def connect(port: Double, options: ConnectionOptions): TLSSocket
@inline
def connect(port: Double, options: ConnectionOptions, secureConnectListener: Function0[Unit]): TLSSocket
@inline
def connect(port: Double, options: Unit, secureConnectListener: Function0[Unit]): TLSSocket
@inline
@inline
def createSecurePair(credentials: SecureContext, isServer: Boolean): SecurePair
@inline
def createSecurePair(credentials: SecureContext, isServer: Boolean, requestCert: Boolean): SecurePair
@inline
def createSecurePair(credentials: SecureContext, isServer: Boolean, requestCert: Boolean, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: SecureContext, isServer: Boolean, requestCert: Unit, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: SecureContext, isServer: Unit, requestCert: Boolean): SecurePair
@inline
def createSecurePair(credentials: SecureContext, isServer: Unit, requestCert: Boolean, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: SecureContext, isServer: Unit, requestCert: Unit, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Boolean, requestCert: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Boolean, requestCert: Boolean, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Boolean, requestCert: Unit, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Unit, requestCert: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Unit, requestCert: Boolean, rejectUnauthorized: Boolean): SecurePair
@inline
def createSecurePair(credentials: Unit, isServer: Unit, requestCert: Unit, rejectUnauthorized: Boolean): SecurePair
@inline
@inline
@inline
def createServer(options: TlsOptions, secureConnectionListener: Function1[TLSSocket, Unit]): Server
@inline
def createServer(secureConnectionListener: Function1[TLSSocket, Unit]): Server
@inline
def getCiphers(): Array[String]
@inline
def rootCertificates: Array[String]

An immutable array of strings representing the root certificates (in PEM format) used for verifying peer certificates. This is the default value of the ca option to tls.createSecureContext().

An immutable array of strings representing the root certificates (in PEM format) used for verifying peer certificates. This is the default value of the ca option to tls.createSecureContext().