Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OtherKeyAttribute

Represents the OtherKeyAttribute structure described in RFC5652

Hierarchy

Implements

Index

Constructors

Properties

keyAttr?: any
keyAttrId: string
CLASS_NAME: string = "OtherKeyAttribute"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault<T>(memberName: string, memberValue: T): memberValue is T
  • Compare values with default values for all class members

    Type Parameters

    • T

    Parameters

    • memberName: string

      String name for a class member

    • memberValue: T

      Value to compare with default value

    Returns memberValue is T

  • defaultValues(memberName: "keyAttrId"): string
  • defaultValues(memberName: "keyAttr"): 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

  • schema(parameters?: any): any
  • Returns value of pre-defined ASN.1 schema for current class

    asn

    ASN.1 schema

    OtherKeyAttribute ::= SEQUENCE {
       keyAttrId OBJECT IDENTIFIER,
       keyAttr ANY DEFINED BY keyAttrId OPTIONAL }
    

    Parameters

    • parameters: any = {}

      Input parameters for the schema

    Returns any

    ASN.1 schema object

Generated using TypeDoc