Class KJUR.asn1.ocsp.CertStatus
Extends
KJUR.asn1.ASN1Object.
CertStatus ASN.1 class encoder
Defined in: asn1ocsp-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.ocsp.CertStatus(params)
CertStatus ASN.1 class encoder
ASN.1 class of SEQUENCE OF SingleResponse is defined in RFC 6960 4.2.1. |
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified, params
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.ocsp.CertStatus(params)
CertStatus ASN.1 class encoder
ASN.1 class of SEQUENCE OF SingleResponse is defined in RFC 6960 4.2.1.
ASN.1 class of SEQUENCE OF SingleResponse is defined in RFC 6960 4.2.1.
CertStatus ::= CHOICE { good [0] IMPLICIT NULL, revoked [1] IMPLICIT RevokedInfo, unknown [2] IMPLICIT UnknownInfo } RevokedInfo ::= SEQUENCE { revocationTime GeneralizedTime, revocationReason [0] EXPLICIT CRLReason OPTIONAL } UnknownInfo ::= NULL CRLReason ::= ENUMERATED { unspecified (0), keyCompromise (1), cACompromise (2), affiliationChanged (3), superseded (4), cessationOfOperation (5), certificateHold (6), -- value 7 is not used removeFromCRL (8), privilegeWithdrawn (9), aACompromise (10) }Following properties are available:
- {String}status - "good", "revoked" or "unknown"
- {String}time (OPTION) - revocationTime YYYYMMDDHHmmSSZ (ex. "20200904235959Z")
- {Number}reason (OPTION) - revocationReason code number
new KJUR.asn1.ocsp.CertStatus({status: "good"}) new KJUR.asn1.ocsp.CertStatus({status: "revoked", time: "20200903235959Z"}) new KJUR.asn1.ocsp.CertStatus({status: "revoked", time: "20200903235959Z", reason: 3}) new KJUR.asn1.ocsp.CertStatus({status: "unknown"})
- Parameters:
- {Array} params
- JSON object for CertStatus parameter
- Since:
- jsrsasign 9.1.6 asn1ocsp 1.1.0