/** * Produce an object suitable for an Asn1OutputStream. * <pre> * KekIdentifier ::= Sequence { * keyIdentifier OCTET STRING, * date GeneralizedTime OPTIONAL, * other OtherKeyAttribute OPTIONAL * } * </pre> */ public override Asn1Object ToAsn1Object() { Asn1EncodableVector v = new Asn1EncodableVector(keyIdentifier); v.AddOptional(date, other); return new DerSequence(v); }