Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

uses

MessageBuilder

uses

MessageChunker

Hierarchy

  • EventEmitter
    • ServerSecureChannelLayer

Index

Constructors

constructor

Properties

_on_response

_on_response: (msgType: string, response: Response, message: Message) => void

Type declaration

    • (msgType: string, response: Response, message: Message): void
    • Parameters

      • msgType: string
      • response: Response
      • message: Message

      Returns void

channelId

channelId: number

clientCertificate

clientCertificate: Buffer

clientNonce

clientNonce: Buffer

Optional clientSecurityHeader

clientSecurityHeader: SecurityHeader

Readonly messageBuilder

messageBuilder: MessageBuilder

receiverCertificate

receiverCertificate: Buffer

securityHeader

securityMode

securityMode: MessageSecurityMode

the channel message security mode

securityPolicy

securityPolicy: SecurityPolicy

the channel message security policy

sessionTokens

sessionTokens: any

timeout

timeout: number

Readonly Static captureRejectionSymbol

captureRejectionSymbol: typeof captureRejectionSymbol

Static captureRejections

captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

Static defaultMaxListeners

defaultMaxListeners: number

Readonly Static errorMonitor

errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

Static registry

registry: ObjectRegistry

Static throttleTime

throttleTime: number

Accessors

aborted

  • get aborted(): boolean
  • Returns boolean

bytesRead

  • get bytesRead(): number
  • the number of bytes read so far by this channel

    Returns number

bytesWritten

  • get bytesWritten(): number
  • the number of bytes written so far by this channel

    Returns number

certificateManager

  • Returns ICertificateManager

hasSession

  • get hasSession(): boolean
  • true when the secure channel is assigned to a active session

    Returns boolean

hashKey

  • get hashKey(): number
  • The unique hash key to identify this secure channel

    property

    hashKey

    Returns number

isOpened

  • get isOpened(): boolean
  • true when the secure channel has been opened successfully

    Returns boolean

remoteAddress

  • get remoteAddress(): string
  • Returns string

remotePort

  • get remotePort(): number
  • Returns number

securityTokenCount

  • get securityTokenCount(): number
  • Returns number

transactionsCount

  • get transactionsCount(): number
  • Returns number

Methods

_rememberClientAddressAndPort

  • _rememberClientAddressAndPort(): void
  • Returns void

abruptlyInterrupt

  • abruptlyInterrupt(): void
  • Returns void

addListener

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

close

  • Abruptly close a Server SecureChannel ,by terminating the underlying transport.

    method

    close

    async

    Parameters

    Returns void

dispose

  • dispose(): void
  • Returns void

emit

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

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

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getCertificate

  • getCertificate(): Buffer
  • method

    getCertificate

    Returns Buffer

    the X509 DER form certificate

getCertificateChain

  • getCertificateChain(): Buffer
  • method

    getCertificateChain

    Returns Buffer

    the X509 DER form certificate

getEndpointDescription

  • the endpoint associated with this secure channel

    Parameters

    Returns EndpointDescription

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getPrivateKey

  • getPrivateKey(): string
  • method

    getPrivateKey

    Returns string

    the privateKey

getSignatureLength

  • getSignatureLength(): PublicKeyLength
  • Returns PublicKeyLength

has_endpoint_for_security_mode_and_policy

  • Parameters

    Returns boolean

init

  • method

    init

    async

    Parameters

    Returns void

listenerCount

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

    • event: string | symbol

    Returns number

listeners

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

    • event: string | symbol

    Returns Function[]

off

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

on

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

once

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

prependListener

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

prependOnceListener

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

rawListeners

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

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • Parameters

    • Optional event: string | symbol

    Returns ServerSecureChannelLayer

removeListener

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns ServerSecureChannelLayer

send_fatal_error_and_abort

  • Parameters

    Returns void

send_response

  • send_response(msgType: string, response: Response, message: Message, callback?: ErrorCallback): void
  • method

    send_response

    async

    Parameters

    Returns void

setMaxListeners

setSecurity

  • Parameters

    Returns void

Static listenerCount

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

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Static on

  • on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>
  • Parameters

    • emitter: EventEmitter
    • event: string

    Returns AsyncIterableIterator<any>

Static once

  • once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>
  • once(emitter: DOMEventTarget, event: string): Promise<any[]>
  • Parameters

    • emitter: NodeEventTarget
    • event: string | symbol

    Returns Promise<any[]>

  • Parameters

    • emitter: DOMEventTarget
    • event: string

    Returns Promise<any[]>

Generated using TypeDoc