Options
All
  • Public
  • Public/Protected
  • All
Menu

Non-abstract session class

export

Hierarchy

Index

Constructors

constructor

Properties

Static Readonly BASIC

BASIC: RegExp = /^Basic/ig

Regex to extract basic from base64 encoded auth

static
memberof

AbstractSession

Static Readonly BASIC_PREFIX

BASIC_PREFIX: string = "Basic "

Basic auth prefix

static
memberof

AbstractSession

Static Readonly BEARER_PREFIX

BEARER_PREFIX: string = "Bearer "

Bearer auth prefix

static
memberof

AbstractSession

Static Readonly DEFAULT_BASE_PATH

DEFAULT_BASE_PATH: "" = ""

Default base path. Our empty string means that we do not use an API mediation layer base path at the beginning of every resource URL.

static
memberof

AbstractSession

Static Readonly DEFAULT_HTTPS_PORT

DEFAULT_HTTPS_PORT: 443 = 443

Default https port 443

static
memberof

AbstractSession

Static Readonly DEFAULT_HTTP_PORT

DEFAULT_HTTP_PORT: 80 = 80

Default http port 80

static
memberof

AbstractSession

Static Readonly DEFAULT_PORT

DEFAULT_PORT: 443 = AbstractSession.DEFAULT_HTTPS_PORT

Default https port

static
memberof

AbstractSession

Static Readonly DEFAULT_PROTOCOL

DEFAULT_PROTOCOL: "https" = SessConstants.HTTPS_PROTOCOL

Default protocol

static
memberof

AbstractSession

Static Readonly DEFAULT_REJECT_UNAUTHORIZED_SETTING

DEFAULT_REJECT_UNAUTHORIZED_SETTING: true = true

Default reject unauthorized

static
memberof

AbstractSession

Static Readonly DEFAULT_SECURE_PROTOCOL

DEFAULT_SECURE_PROTOCOL: "SSLv23_method" = "SSLv23_method"

Default SSL method

static
memberof

AbstractSession

Static Readonly DEFAULT_STRICT_SSL

DEFAULT_STRICT_SSL: true = true

Default strict ssl setting

static
memberof

AbstractSession

Static Readonly DEFAULT_TYPE

DEFAULT_TYPE: "none" = SessConstants.AUTH_TYPE_NONE

Default session type

static
memberof

AbstractSession

Accessors

ISession

Methods

storeCookie

  • storeCookie(cookie: any): void

Static createFromUrl

  • createFromUrl(url: URL, includePath?: boolean): Session
  • Creates an instance of Session from a URL object.

    memberof

    Session

    Parameters

    • url: URL

      URL object from the Node.js url library

    • Optional includePath: boolean

      Specifies whether session base path should be populated. Default value is true.

    Returns Session

Static getBase64Auth

  • getBase64Auth(user: string, password: string): string

Static getPasswordFromAuth

  • getPasswordFromAuth(auth: string): string

Static getUsernameFromAuth

  • getUsernameFromAuth(auth: string): string

Generated using TypeDoc