Class KJUR.asn1.x509.AuthorityKeyIdentifier
Extends
KJUR.asn1.x509.Extension.
AuthorityKeyIdentifier ASN.1 structure class
Defined in: asn1x509-1.0.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
AuthorityKeyIdentifier ASN.1 structure class
d-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 35 }
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
KeyIdentifier ::= OCTET STRING
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
| Method Attributes | Method Name and Description |
|---|---|
|
setCertIssuerByParam(param)
set authorityCertIssuer value by X500Name parameter
NOTE: Automatic authorityCertIssuer name setting by an issuer
certificate will be supported in future version.
|
|
|
setCertSerialNumberByParam(param)
set authorityCertSerialNumber value by DERInteger parameter
NOTE: Automatic authorityCertSerialNumber setting by an issuer
certificate will be supported in future version.
|
|
|
setKIDByParam(param)
set keyIdentifier value by DERInteger parameter
NOTE: Automatic keyIdentifier value calculation by an issuer
public key will be supported in future version.
|
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.x509.AuthorityKeyIdentifier(params)
AuthorityKeyIdentifier ASN.1 structure class
d-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 35 }
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
KeyIdentifier ::= OCTET STRING
e1 = new KJUR.asn1.x509.AuthorityKeyIdentifier({
critical: true,
kid: {hex: '89ab'},
issuer: {str: '/C=US/CN=a'},
sn: {hex: '1234'}
});
- Parameters:
- {Array} params
- associative array of parameters (ex. {'uri': 'http://a.com/', 'critical': true})
- Since:
- asn1x509 1.0.8
Method Detail
setCertIssuerByParam(param)
set authorityCertIssuer value by X500Name parameter
NOTE: Automatic authorityCertIssuer name setting by an issuer
certificate will be supported in future version.
- Parameters:
- {Array} param
- array of KJUR.asn1.x509.X500Name parameter
- Since:
- asn1x509 1.0.8
setCertSerialNumberByParam(param)
set authorityCertSerialNumber value by DERInteger parameter
NOTE: Automatic authorityCertSerialNumber setting by an issuer
certificate will be supported in future version.
- Parameters:
- {Array} param
- array of KJUR.asn1.DERInteger parameter
- Since:
- asn1x509 1.0.8
setKIDByParam(param)
set keyIdentifier value by DERInteger parameter
NOTE: Automatic keyIdentifier value calculation by an issuer
public key will be supported in future version.
- Parameters:
- {Array} param
- array of KJUR.asn1.DERInteger parameter
- Since:
- asn1x509 1.0.8