Class Index | File Index

Classes


Class KJUR.asn1.x509.SubjectPublicKeyInfo


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

Class Summary
Constructor Attributes Constructor Name and Description
 
SubjectPublicKeyInfo ASN.1 structure class
As for argument 'params' for constructor, you can specify one of following properties: NOTE1: 'params' can be omitted.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.x509.SubjectPublicKeyInfo.setRSAKey(rsaKey)
(DEPRECATED) set RSAKey object as subject public key
<static>  
KJUR.asn1.x509.SubjectPublicKeyInfo.setRSAPEM(rsaPubPEM)
(DEPRECATED) set a PEM formatted RSA public key string as RSA public key
Class Detail
KJUR.asn1.x509.SubjectPublicKeyInfo(params)
SubjectPublicKeyInfo ASN.1 structure class
As for argument 'params' for constructor, you can specify one of following properties: NOTE1: 'params' can be omitted.
NOTE2: DSA/ECDSA key object is also supported since asn1x509 1.0.6.

EXAMPLE

var spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(RSAKey_object);
var spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(KJURcryptoECDSA_object);
var spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(KJURcryptoDSA_object);
Parameters:
{Object} params
parameter for subject public key
Method Detail
<static> KJUR.asn1.x509.SubjectPublicKeyInfo.setRSAKey(rsaKey)
(DEPRECATED) set RSAKey object as subject public key
spki.setRSAKey(rsaKey);
Parameters:
{RSAKey} rsaKey
RSAKey object for RSA public key

<static> KJUR.asn1.x509.SubjectPublicKeyInfo.setRSAPEM(rsaPubPEM)
(DEPRECATED) set a PEM formatted RSA public key string as RSA public key
spki.setRSAPEM(rsaPubPEM);
Parameters:
{String} rsaPubPEM
PEM formatted RSA public key string

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