Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeneralName

Represents the GeneralName structure described in RFC5280

Hierarchy

Implements

Index

Constructors

Properties

type: number

value type - from a tagged value (0 for "otherName", 1 for "rfc822Name" etc.)

value: any

ASN.1 object having GeneralName value (type depends on TYPE value)

CLASS_NAME: string = "GeneralName"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • toSchema(): Constructed | ObjectIdentifier | IA5String | Choice
  • Converts current object to ASN.1 object and sets correct values

    Returns Constructed | ObjectIdentifier | IA5String | Choice

    ASN.1 object

  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault(memberName: string, memberValue: any): boolean
  • Compares values with default values for all class members

    Parameters

    • memberName: string

      String name for a class member

    • memberValue: any

      Value to compare with default value

    Returns boolean

  • defaultValues(memberName: "type"): number
  • defaultValues(memberName: "value"): any
  • fromBER<T>(this: PkiObjectConstructor<T>, raw: BufferSource): T
  • Creates PKI object from the raw data

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

    Initialized and filled current class object

  • Returns value of pre-defined ASN.1 schema for current class

    asn

    ASN.1 schema

    GeneralName ::= Choice {
       otherName                       [0]     OtherName,
       rfc822Name                      [1]     IA5String,
       dNSName                         [2]     IA5String,
       x400Address                     [3]     ORAddress,
       directoryName                   [4]     value,
       ediPartyName                    [5]     EDIPartyName,
       uniformResourceIdentifier       [6]     IA5String,
       iPAddress                       [7]     OCTET STRING,
       registeredID                    [8]     OBJECT IDENTIFIER }
    

    Parameters

    Returns Choice

    ASN.1 schema object

Generated using TypeDoc