BasicOCSPResponse
Represents the BasicOCSPResponse structure described in RFC6960
Extends
Implements
Constructors
Constructor
new BasicOCSPResponse(
parameters?):BasicOCSPResponse
Initializes a new instance of the BasicOCSPResponse class
Parameters
parameters?
BasicOCSPResponseParameters = {}
Initialization parameters
Returns
BasicOCSPResponse
Overrides
Properties
certs?
optionalcerts?:Certificate[]
Implementation of
signature
signature:
BitString
Implementation of
signatureAlgorithm
signatureAlgorithm:
AlgorithmIdentifier
Implementation of
IBasicOCSPResponse.signatureAlgorithm
tbsResponseData
tbsResponseData:
ResponseData
Implementation of
IBasicOCSPResponse.tbsResponseData
CLASS_NAME
staticCLASS_NAME:string="BasicOCSPResponse"
Name of the class
Overrides
Accessors
className
Get Signature
get className():
string
Returns
string
Inherited from
Methods
fromSchema()
fromSchema(
schema):void
Converts parsed ASN.1 object into current class
Parameters
schema
any
ASN.1 schema
Returns
void
Overrides
getCertificateStatus()
getCertificateStatus(
certificate,issuerCertificate,crypto?):Promise<CertificateStatus>
Get OCSP response status for specific certificate.
Important: this method only inspects the SingleResponse entries in
the response — it does not authenticate the responder. A successful
call MUST NOT be relied upon unless verify() has already returned
true for this response (under suitable trust parameters). Without
verification, an attacker-supplied response can claim any status.
Parameters
certificate
Certificate to be checked
issuerCertificate
Certificate of issuer for certificate to be checked
crypto?
ICryptoEngine = ...
Crypto engine
Returns
Promise<CertificateStatus>
sign()
sign(
privateKey,hashAlgorithm?,crypto?):Promise<void>
Make signature for current OCSP Basic Response
Parameters
privateKey
CryptoKey
Private key for "subjectPublicKeyInfo" structure
hashAlgorithm?
string = "SHA-1"
Hashing algorithm. Default SHA-1
crypto?
ICryptoEngine = ...
Crypto engine
Returns
Promise<void>
toJSON()
toJSON():
BasicOCSPResponseJson
Converts the class to JSON object
Returns
JSON object
Overrides
toSchema()
toSchema():
Sequence
Converts current object to ASN.1 object and sets correct values
Returns
Sequence
ASN.1 object