Org.BouncyCastle.Asn1.Cms.KekIdentifier.KekIdentifier C# (CSharp) Méthode

KekIdentifier() public méthode

public KekIdentifier ( Asn1Sequence seq ) : System
seq Org.BouncyCastle.Asn1.Asn1Sequence
Résultat System
		public KekIdentifier(
            Asn1Sequence seq)
        {
            keyIdentifier = (Asn1OctetString) seq[0];

			switch (seq.Count)
            {
            case 1:
				break;
            case 2:
				if (seq[1] is DerGeneralizedTime)
				{
					date = (DerGeneralizedTime) seq[1];
				}
				else
				{
					other = OtherKeyAttribute.GetInstance(seq[2]);
				}
				break;
            case 3:
				date  = (DerGeneralizedTime) seq[1];
				other = OtherKeyAttribute.GetInstance(seq[2]);
				break;
            default:
				throw new ArgumentException("Invalid KekIdentifier");
            }
        }

Same methods

KekIdentifier::KekIdentifier ( byte keyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other ) : System