Class Index | File Index

Classes


Class KJUR.asn1.csr.CertificationRequestInfo


Extends KJUR.asn1.ASN1Object.
ASN.1 CertificationRequestInfo structure class
Defined in: asn1csr-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ASN.1 CertificationRequestInfo structure class
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.csr.CertificationRequestInfo.setSubjectByParam(x500NameParam)
set subject name field by parameter
<static>  
KJUR.asn1.csr.CertificationRequestInfo.setSubjectPublicKeyByGetKey(keyParam)
set subject public key info by RSA/ECDSA/DSA key parameter
Class Detail
KJUR.asn1.csr.CertificationRequestInfo(params)
ASN.1 CertificationRequestInfo structure class
csri = new KJUR.asn1.csr.CertificationRequestInfo();
csri.setSubjectByParam({'str': '/C=US/O=Test/CN=example.com'});
csri.setSubjectPublicKeyByGetKey(pubKeyObj);

// -- DEFINITION OF ASN.1 SYNTAX --
// CertificationRequestInfo ::= SEQUENCE {
//   version       INTEGER { v1(0) } (v1,...),
//   subject       Name,
//   subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
//   attributes    [0] Attributes{{ CRIAttributes }} }
Parameters:
{Array} params
associative array of parameters (ex. {})
Since:
jsrsasign 4.8.7 asn1csr 1.0.0
Method Detail
<static> KJUR.asn1.csr.CertificationRequestInfo.setSubjectByParam(x500NameParam)
set subject name field by parameter
csri.setSubjectByParam({'str': '/C=US/CN=b'});
Parameters:
{Array} x500NameParam
X500Name parameter
See:
KJUR.asn1.x509.X500Name

<static> KJUR.asn1.csr.CertificationRequestInfo.setSubjectPublicKeyByGetKey(keyParam)
set subject public key info by RSA/ECDSA/DSA key parameter
csri.setSubjectPublicKeyByGetKeyParam(certPEMString); // or 
csri.setSubjectPublicKeyByGetKeyParam(pkcs8PublicKeyPEMString); // or 
csir.setSubjectPublicKeyByGetKeyParam(kjurCryptoECDSAKeyObject); // et.al.
Parameters:
{Object} keyParam
public key parameter which passed to KEYUTIL.getKey argument
See:
KJUR.asn1.x509.SubjectPublicKeyInfo
KEYUTIL.getKey

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