Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerSecureChannelLayer

class

ServerSecureChannelLayer

extends

EventEmitter

uses

MessageBuilder

uses

MessageChunker

Hierarchy

  • EventEmitter
    • ServerSecureChannelLayer

Index

Constructors

constructor

Properties

_on_response

_on_response: function | null

channelId

channelId: number | null

clientCertificate

clientCertificate: Buffer | null

clientNonce

clientNonce: Buffer | null

Optional clientSecurityHeader

clientSecurityHeader: SecurityHeader

endpoint

endpoint: EndpointDescription | null

messageBuilder

messageBuilder: MessageBuilder

receiverCertificate

receiverCertificate: Buffer | null

securityHeader

securityHeader: AsymmetricAlgorithmSecurityHeader | null

securityMode

securityMode: MessageSecurityMode

sessionTokens

sessionTokens: any

timeout

timeout: number

Static defaultMaxListeners

defaultMaxListeners: number

Static registry

registry: any

Accessors

aborted

  • get aborted(): boolean

bytesRead

  • get bytesRead(): number

bytesWritten

  • get bytesWritten(): number

certificateManager

  • get certificateManager(): ICertificateManager

hasSession

  • get hasSession(): boolean

hashKey

  • get hashKey(): number

isOpened

  • get isOpened(): boolean

remoteAddress

  • get remoteAddress(): string

remotePort

  • get remotePort(): number

securityTokenCount

  • get securityTokenCount(): number

transactionsCount

  • get transactionsCount(): number

Methods

_rememberClientAddressAndPort

  • _rememberClientAddressAndPort(): void

abruptlyInterrupt

  • abruptlyInterrupt(): void

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

close

dispose

  • dispose(): void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getCertificate

getCertificateChain

getEndpointDescription

  • getEndpointDescription(securityMode: MessageSecurityMode, securityPolicy: SecurityPolicy): EndpointDescription | null

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getPrivateKey

  • getPrivateKey(): PrivateKeyPEM

getSignatureLength

  • getSignatureLength(): PublicKeyLength

has_endpoint_for_security_mode_and_policy

  • has_endpoint_for_security_mode_and_policy(securityMode: MessageSecurityMode, securityPolicy: SecurityPolicy): boolean

init

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

send_error_and_abort

  • send_error_and_abort(statusCode: StatusCode, description: string, message: Message, callback: ErrorCallback): void

send_response

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setSecurity

  • setSecurity(securityMode: MessageSecurityMode, securityPolicy: SecurityPolicy): void

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc