Class KJUR.asn1.x509.TBSCertList
Extends
KJUR.asn1.ASN1Object.
ASN.1 TBSCertList structure class for CRL
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.x509.TBSCertList(params)
ASN.1 TBSCertList structure class for CRL
EXAMPLE |
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.x509.TBSCertList.addRevokedCert(snParam, timeParam)
add revoked certficate by parameter
|
<static> |
KJUR.asn1.x509.TBSCertList.setIssuerByParam(x500NameParam)
set issuer name field by parameter
|
<static> |
KJUR.asn1.x509.TBSCertList.setNextUpdateByParam(timeParam)
set nextUpdate field by parameter
|
<static> |
KJUR.asn1.x509.TBSCertList.setSignatureAlgByParam(algIdParam)
set signature algorithm field by parameter
|
<static> |
KJUR.asn1.x509.TBSCertList.setThisUpdateByParam(timeParam)
set thisUpdate field by parameter
|
Class Detail
KJUR.asn1.x509.TBSCertList(params)
ASN.1 TBSCertList structure class for CRL
EXAMPLE
var o = new KJUR.asn1.x509.TBSCertList(); o.setSignatureAlgByParam({'name': 'SHA1withRSA'}); o.setIssuerByParam({'str': '/C=US/O=a'}); o.setNotThisUpdateByParam({'str': '130504235959Z'}); o.setNotNextUpdateByParam({'str': '140504235959Z'}); o.addRevokedCert({'int': 4}, {'str':'130514235959Z'})); o.addRevokedCert({'hex': '0f34dd'}, {'str':'130514235959Z'})); // TBSCertList ::= SEQUENCE { // version Version OPTIONAL, // -- if present, MUST be v2 // signature AlgorithmIdentifier, // issuer Name, // thisUpdate Time, // nextUpdate Time OPTIONAL, // revokedCertificates SEQUENCE OF SEQUENCE { // userCertificate CertificateSerialNumber, // revocationDate Time, // crlEntryExtensions Extensions OPTIONAL // -- if present, version MUST be v2 // } OPTIONAL, // crlExtensions [0] EXPLICIT Extensions OPTIONAL
- Parameters:
- {Array} params
- associative array of parameters (ex. {})
- Since:
- 1.0.3
Method Detail
<static>
KJUR.asn1.x509.TBSCertList.addRevokedCert(snParam, timeParam)
add revoked certficate by parameter
tbsc.addRevokedCert({'int': 3}, {'str': '130508235959Z'});
- Parameters:
- {Array} snParam
- DERInteger parameter for certificate serial number
- {Array} timeParam
- Time parameter for revocation date
- See:
- KJUR.asn1.x509.Time
<static>
KJUR.asn1.x509.TBSCertList.setIssuerByParam(x500NameParam)
set issuer name field by parameter
tbsc.setIssuerParam({'str': '/C=US/CN=b'});
- Parameters:
- {Array} x500NameParam
- X500Name parameter
<static>
KJUR.asn1.x509.TBSCertList.setNextUpdateByParam(timeParam)
set nextUpdate field by parameter
tbsc.setNextUpdateByParam({'str': '130508235959Z'});
- Parameters:
- {Array} timeParam
- Time parameter
- See:
- KJUR.asn1.x509.Time
<static>
KJUR.asn1.x509.TBSCertList.setSignatureAlgByParam(algIdParam)
set signature algorithm field by parameter
tbsc.setSignatureAlgByParam({'name': 'SHA1withRSA'});
- Parameters:
- {Array} algIdParam
- AlgorithmIdentifier parameter
<static>
KJUR.asn1.x509.TBSCertList.setThisUpdateByParam(timeParam)
set thisUpdate field by parameter
tbsc.setThisUpdateByParam({'str': '130508235959Z'});
- Parameters:
- {Array} timeParam
- Time parameter
- See:
- KJUR.asn1.x509.Time