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, params
Method Attributes | Method Name and Description |
---|---|
setPubKey({@link)
|
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
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
NOTE2: DSA/ECDSA key object is also supported since asn1x509 1.0.6.
EXAMPLE
spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(RSAKey_object); spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(KJURcryptoECDSA_object); spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(KJURcryptoDSA_object);
- Parameters:
- {Object} params
- parameter for subject public key
Method Detail
setPubKey({@link)
spki = new KJUR.asn1.x509.SubjectPublicKeyInfo(); pubKey = KEYUTIL.getKey(PKCS8PUBKEYPEM); spki.setPubKey(pubKey);
- Parameters:
- {Object} {@link
- RSAKey}, KJUR.crypto.ECDSA or KJUR.crypto.DSA object
- Since:
- jsrsasign 8.0.0 asn1x509 1.1.0