Class Index | File Index

Classes


Class KJUR.asn1.x509.AlgorithmIdentifier


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

Class Summary
Constructor Attributes Constructor Name and Description
 
AlgorithmIdentifier ASN.1 structure class The 'params' argument is an associative array and has following parameters:
  • name: algorithm name (MANDATORY, ex.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.x509.AlgorithmIdentifier(params)
AlgorithmIdentifier ASN.1 structure class The 'params' argument is an associative array and has following parameters:
  • name: algorithm name (MANDATORY, ex. sha1, SHA256withRSA)
  • asn1params: explicitly specify ASN.1 object for algorithm. (OPTION)
  • paramempty: set algorithm parameter to NULL by force. If paramempty is false, algorithm parameter will be set automatically. If paramempty is false and algorithm name is "*withDSA" or "withECDSA" parameter field of AlgorithmIdentifier will be ommitted otherwise it will be NULL by default. (OPTION, DEFAULT = false)
algId = new KJUR.asn1.x509.AlgorithmIdentifier({name: "sha1"});
// set parameter to NULL authomatically if algorithm name is "*withRSA".
algId = new KJUR.asn1.x509.AlgorithmIdentifier({name: "SHA256withRSA"});
// set parameter to NULL authomatically if algorithm name is "rsaEncryption".
algId = new KJUR.asn1.x509.AlgorithmIdentifier({name: "rsaEncryption"});
// SHA256withRSA and set parameter empty by force
algId = new KJUR.asn1.x509.AlgorithmIdentifier({name: "SHA256withRSA", paramempty: true});
Parameters:
{Array} params
associative array of parameters (ex. {'name': 'SHA1withRSA'})

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