Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Variables

Const jsra

jsra: any = require('jsrsasign')

Const semverValidRange

semverValidRange: any = require('semver/ranges/valid')

Functions

Const dateToNumericDate

  • dateToNumericDate(d: Date): number
  • Convert a standard javascript Date into a NumericDate.

    Parameters

    • d: Date

    Returns number

Const isApplicationUrn

  • isApplicationUrn(s: string): boolean
  • Predicate check for well-formed application URN, as used in aud field.

    Parameters

    • s: string

    Returns boolean

Const isDomainName

  • isDomainName(s: string): boolean
  • Predicate check for valid domain name.

    Parameters

    • s: string

    Returns boolean

Const isEmail

  • isEmail(s: string): boolean
  • Predicate check for valid email address.

    Parameters

    • s: string

    Returns boolean

Const isPipedString

  • isPipedString(s: string): boolean
  • Predicate check for a pipe separated string as used by the user_id field.

    Parameters

    • s: string

    Returns boolean

Const isSemverRange

  • isSemverRange(s: string): any
  • Parameters

    • s: string

    Returns any

Const isStringOrUri

  • isStringOrUri(s: string): boolean
  • Parameters

    • s: string

    Returns boolean

Const isUri

  • isUri(s: string): boolean
  • Parameters

    • s: string

    Returns boolean

Const isWellFormedRegistration

Const millisecondsToNumericDate

  • millisecondsToNumericDate(millis: number): number
  • Convert datetime in milliseconds into a NumericDate.

    Parameters

    • millis: number

    Returns number

Const momentToNumericDate

  • momentToNumericDate(m: Moment): number
  • Convert a momentjs date into a NumericDate.

    Parameters

    • m: Moment

    Returns number

Const registration

  • registration(__namedParameters: { aud: string; email: string; exp: number; iss: string; name: string; nbf: undefined | number; org: string; pub: undefined | string; registry: undefined | string; scope: undefined | string[]; sub: string; ver: string; website: undefined | string }): JetRegistration
  • Generates a complete, well-formed JET registration payload.

    Parameters

    • __namedParameters: { aud: string; email: string; exp: number; iss: string; name: string; nbf: undefined | number; org: string; pub: undefined | string; registry: undefined | string; scope: undefined | string[]; sub: string; ver: string; website: undefined | string }
      • aud: string
      • email: string
      • exp: number
      • iss: string
      • name: string
      • nbf: undefined | number
      • org: string
      • pub: undefined | string
      • registry: undefined | string
      • scope: undefined | string[]
      • sub: string
      • ver: string
      • website: undefined | string

    Returns JetRegistration

Const sign