Class Index | File Index

Classes


Class KJUR.asn1.x509.TBSCertList


Extends KJUR.asn1.ASN1Object.
ASN.1 TBSCertList structure class for CRL
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ASN.1 TBSCertList structure class for CRL

EXAMPLE

Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
 
addRevokedCert(snParam, timeParam)
add revoked certificate by parameter
 
setIssuerByParam(x500NameParam)
set issuer name field by parameter
 
set nextUpdate field by parameter
 
set signature algorithm field by parameter
 
set thisUpdate field by parameter
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
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
addRevokedCert(snParam, timeParam)
add revoked certificate 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

setIssuerByParam(x500NameParam)
set issuer name field by parameter
tbsc.setIssuerParam({'str': '/C=US/CN=b'});
Parameters:
{Array} x500NameParam
X500Name parameter
See:
KJUR.asn1.x509.X500Name

setNextUpdateByParam(timeParam)
set nextUpdate field by parameter
tbsc.setNextUpdateByParam({'str': '130508235959Z'});
Parameters:
{Array} timeParam
Time parameter
See:
KJUR.asn1.x509.Time

setSignatureAlgByParam(algIdParam)
set signature algorithm field by parameter
tbsc.setSignatureAlgByParam({'name': 'SHA1withRSA'});
Parameters:
{Array} algIdParam
AlgorithmIdentifier parameter

setThisUpdateByParam(timeParam)
set thisUpdate field by parameter
tbsc.setThisUpdateByParam({'str': '130508235959Z'});
Parameters:
{Array} timeParam
Time parameter
See:
KJUR.asn1.x509.Time

© 2012-2017 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0