declare namespace jsrsasign.KJUR.asn1.x509 { /** * SubjectKeyIdentifier extension ASN.1 structure class * @param params associative array of parameters (ex. {kid: {hex: '89ab...'}, critical: true}) * @since asn1x509 1.1.7 jsrsasign 8.0.14 * @description * This class represents ASN.1 structure for * * SubjectKeyIdentifier in RFC 5280. * Constructor of this class may have following parameters: * *
     * d-ce-subjectKeyIdentifier OBJECT IDENTIFIER ::=  { id-ce 14 }
     * SubjectKeyIdentifier ::= KeyIdentifier
     * KeyIdentifier ::= OCTET STRING
     * 
* * @example * // set by hexadecimal string * e = new KJUR.asn1.x509.SubjectKeyIdentifier({kid: {hex: '89ab'}}); * // set by PEM public key or certificate string * e = new KJUR.asn1.x509.SubjectKeyIdentifier({kid: "-----BEGIN CERTIFICATE..."}); * // set by public key object * pubkey = KEYUTIL.getKey("-----BEGIN CERTIFICATE..."); * e = new KJUR.asn1.x509.SubjectKeyIdentifier({kid: pubkey}); */ class SubjectKeyIdentifier extends Extension { constructor(params?: any); /** * set keyIdentifier value by DEROctetString parameter, key object or PEM file * @param param array of {@link KJUR.asn1.DERInteger} parameter * @since asn1x509 1.1.7 jsrsasign 8.0.14 * @description * * * NOTE1: Automatic key identifier calculation is supported * since jsrsasign 8.0.16. * * @see KEYUTIL.getKeyID * * @example * o = new KJUR.asn1.x509.SubjectKeyIdentifier(); * // set by hexadecimal string * o.setKIDByParam({hex: '1ad9...'}); * // set by SubjectPublicKeyInfo of PEM certificate string * o.setKIDByParam("-----BEGIN CERTIFICATE..."); * // set by PKCS#8 PEM public key string * o.setKIDByParam("-----BEGIN PUBLIC KEY..."); * // set by public key object * pubkey = KEYUTIL.getKey("-----BEGIN CERTIFICATE..."); * o.setKIDByParam(pubkey); */ setKIDByParam(param: any): void; } }