class Server extends Object with StObject

Annotations
@JSType() @JSImport("tls", "Server") @native()
Source
Server.scala
Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Server
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Server(options: TlsOptions, secureConnectionListener: Function1[TLSSocket, Unit])
  2. new Server(secureConnectionListener: Function1[TLSSocket, Unit])
  3. new Server(options: TlsOptions)
  4. new Server()

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. def addContext(hostName: scala.Predef.String, credentials: SecureContextOptions): Unit

    The server.addContext() method adds a secure context that will be used if the client request's SNI name matches the supplied hostname (or wildcard).

  5. def addListener(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type

    events.EventEmitter 1.

    events.EventEmitter 1. tlsClientError 2. newSession 3. OCSPRequest 4. resumeSession 5. secureConnection 6. keylog

  6. def addListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  7. def addListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  8. def addListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  9. def addListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  10. def addListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  11. def addListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  14. def emit(event: Symbol, args: Any*): Boolean
  15. def emit(event: scala.Predef.String, args: Any*): Boolean
  16. def emit_OCSPRequest(event: OCSPRequest, certificate: Buffer, issuer: Buffer, callback: Function2[|[Error, Null], Buffer, Unit]): Boolean
    Annotations
    @JSName("emit")
  17. def emit_keylog(event: keylog, line: Buffer, tlsSocket: TLSSocket): Boolean
    Annotations
    @JSName("emit")
  18. def emit_newSession(event: newSession, sessionId: Buffer, sessionData: Buffer, callback: Function2[Error, Buffer, Unit]): Boolean
    Annotations
    @JSName("emit")
  19. def emit_resumeSession(event: resumeSession, sessionId: Buffer, callback: Function2[Error, Buffer, Unit]): Boolean
    Annotations
    @JSName("emit")
  20. def emit_secureConnection(event: secureConnection, tlsSocket: TLSSocket): Boolean
    Annotations
    @JSName("emit")
  21. def emit_tlsClientError(event: tlsClientError, err: Error, tlsSocket: TLSSocket): Boolean
    Annotations
    @JSName("emit")
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  25. def getTicketKeys(): Buffer

    Returns the session ticket keys.

  26. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. def on(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
  34. def on_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("on")
  35. def on_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("on")
  36. def on_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("on")
  37. def on_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("on")
  38. def on_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("on")
  39. def on_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("on")
  40. def once(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
  41. def once_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("once")
  42. def once_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("once")
  43. def once_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("once")
  44. def once_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("once")
  45. def once_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("once")
  46. def once_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("once")
  47. def prependListener(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
  48. def prependListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  49. def prependListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  50. def prependListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  51. def prependListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  52. def prependListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  53. def prependListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  54. def prependOnceListener(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
  55. def prependOnceListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  56. def prependOnceListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  57. def prependOnceListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  58. def prependOnceListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  59. def prependOnceListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  60. def prependOnceListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  61. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  62. def setSecureContext(details: SecureContextOptions): Unit

    The server.setSecureContext() method replaces the secure context of an existing server.

    The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.

  63. def setTicketKeys(keys: Buffer): Unit

    The server.setSecureContext() method replaces the secure context of an existing server.

    The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.

  64. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  65. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  66. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  67. def valueOf(): Any
    Definition Classes
    Object
  68. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  69. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  70. 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

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped