* KeyIdentifier ::= OCTET STRING
*/
- public class AuthorityKeyIdentifierExtension : X509Extension {
+#if INSIDE_SYSTEM
+ internal
+#else
+ public
+#endif
+ class AuthorityKeyIdentifierExtension : X509Extension {
private byte[] aki;
}
}
+ protected override void Encode ()
+ {
+ ASN1 seq = new ASN1 (0x30);
+ if (aki == null) {
+ throw new InvalidOperationException ("Invalid AuthorityKeyIdentifier extension");
+ }
+
+ seq.Add (new ASN1 (0x80, aki));
+ extnValue = new ASN1 (0x04);
+ extnValue.Add (seq);
+ }
+
public override string Name {
get { return "Authority Key Identifier"; }
}
return null;
return (byte[]) aki.Clone ();
}
+ set { aki = value; }
}
public override string ToString ()