Class KJUR.asn1.x509.SubjectPublicKeyInfo
Extends
KJUR.asn1.ASN1Object.
SubjectPublicKeyInfo ASN.1 structure class
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SubjectPublicKeyInfo ASN.1 structure class
As for argument 'params' for constructor, you can specify one of following properties:
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
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:
NOTE2: DSA/ECDSA key object is also supported since asn1x509 1.0.6.
As for argument 'params' for constructor, you can specify one of following properties:
- RSAKey object
- KJUR.crypto.ECDSA object
- KJUR.crypto.DSA object
- (DEPRECATED)rsakey - specify RSAKey object of subject public key
- (DEPRECATED)rsapem - specify a string of PEM public key of RSA key
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);
<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