Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReceivingTokenEventArgs"/> class.
        /// </summary>
        /// <param name="tokenXml">The raw token XML, prior to any decryption.</param>
        internal ReceivingTokenEventArgs(string tokenXml)
        {
            Contract.Requires <ArgumentNullException>(tokenXml != null);

            this.TokenXml         = tokenXml;
            this.IsEncrypted      = Token.IsEncrypted(this.TokenXml);
            this.DecryptingTokens = new List <SecurityToken>();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReceivingTokenEventArgs"/> class.
        /// </summary>
        /// <param name="tokenXml">The raw token XML, prior to any decryption.</param>
        internal ReceivingTokenEventArgs(string tokenXml)
        {
            Requires.NotNull(tokenXml, "tokenXml");

            this.TokenXml         = tokenXml;
            this.IsEncrypted      = Token.IsEncrypted(this.TokenXml);
            this.DecryptingTokens = new List <SecurityToken>();
        }