PkiObject
Extended by
Section titled “Extended by”AccessDescriptionAccuracyAlgorithmIdentifierAltNameAttributeAttCertValidityPeriodAttributeCertificateInfoV1AttributeCertificateV1IssuerSerialAttributeCertificateInfoV2HolderObjectDigestInfoV2FormAttributeCertificateV2AttributeTypeAndValueAuthenticatedSafeAuthorityKeyIdentifierBasicConstraintsBasicOCSPResponseCAVersionCRLBagCRLDistributionPointsCertBagCertIDCertificateCertificatePoliciesCertificateRevocationListCertificateSetCertificateTemplateCertificationRequestContentInfoDigestInfoDistributionPointECCCMSSharedInfoECPrivateKeyECPublicKeyEncapsulatedContentInfoEncryptedContentInfoEncryptedDataEnvelopedDataExtKeyUsageExtensionExtensionsGeneralNameGeneralNamesGeneralSubtreeInfoAccessIssuerAndSerialNumberIssuingDistributionPointKEKIdentifierKEKRecipientInfoKeyAgreeRecipientIdentifierKeyAgreeRecipientInfoKeyTransRecipientInfoMacDataMessageImprintNameConstraintsOCSPRequestOCSPResponseOriginatorIdentifierOrKeyOriginatorInfoOriginatorPublicKeyOtherCertificateFormatOtherKeyAttributeOtherPrimeInfoOtherRecipientInfoOtherRevocationInfoFormatPBES2ParamsPBKDF2ParamsPFXPKCS8ShroudedKeyBagPKIStatusInfoPasswordRecipientinfoPolicyConstraintsPolicyInformationPolicyMappingPolicyMappingsPolicyQualifierInfoPrivateKeyInfoPrivateKeyUsagePeriodPublicKeyInfoQCStatementQCStatementsRSAESOAEPParamsRSAPrivateKeyRSAPublicKeyRSASSAPSSParamsRecipientEncryptedKeyRecipientEncryptedKeysRecipientIdentifierRecipientInfoRecipientKeyIdentifierRelativeDistinguishedNamesRequestResponseBytesResponseDataRevocationInfoChoicesRevokedCertificateSafeBagSafeContentsSecretBagSignatureSignedAndUnsignedAttributesSignedCertificateTimestampSignedCertificateTimestampListSignedDataSignerInfoSingleResponseSubjectDirectoryAttributesTBSRequestTSTInfoTimeTimeStampReqTimeStampResp
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PkiObject():
PkiObject
Returns
Section titled “Returns”PkiObject
Properties
Section titled “Properties”CLASS_NAME
Section titled “CLASS_NAME”
staticCLASS_NAME:string="PkiObject"
Name of the class
Accessors
Section titled “Accessors”className
Section titled “className”Get Signature
Section titled “Get Signature”get className():
string
Returns
Section titled “Returns”string
Methods
Section titled “Methods”fromSchema()
Section titled “fromSchema()”
abstractfromSchema(schema):void
Converts parsed ASN.1 object into current class
Parameters
Section titled “Parameters”schema
Section titled “schema”any
ASN.1 schema
Returns
Section titled “Returns”void
toJSON()
Section titled “toJSON()”
abstracttoJSON():any
Converts the class to JSON object
Returns
Section titled “Returns”any
JSON object
toSchema()
Section titled “toSchema()”
abstracttoSchema(encodeFlag?):any
Converts current object to ASN.1 object and sets correct values
Parameters
Section titled “Parameters”encodeFlag?
Section titled “encodeFlag?”boolean
If param equal to false then creates schema via decoding stored value. In other case creates schema via assembling from cached parts
Returns
Section titled “Returns”any
ASN.1 object
toString()
Section titled “toString()”toString(
encoding?):string
Parameters
Section titled “Parameters”encoding?
Section titled “encoding?”"hex" | "base64" | "base64url" = "hex"
Returns
Section titled “Returns”string
blockName()
Section titled “blockName()”
staticblockName():string
Returns block name
Returns
Section titled “Returns”string
Returns string block name
defaultValues()
Section titled “defaultValues()”
staticdefaultValues(memberName):any
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”string
String name for a class member
Returns
Section titled “Returns”any
Default value
fromBER()
Section titled “fromBER()”
staticfromBER<T>(this,raw):T
Creates PKI object from the raw data
Type Parameters
Section titled “Type Parameters”T extends PkiObject
Parameters
Section titled “Parameters”PkiObjectConstructor<T>
BufferSource
ASN.1 encoded raw data
Returns
Section titled “Returns”T
Initialized and filled current class object
schema()
Section titled “schema()”
staticschema(parameters?):any
Returns value of pre-defined ASN.1 schema for current class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”SchemaParameters = {}
Input parameters for the schema
Returns
Section titled “Returns”any
ASN.1 schema object