sessionkeyinfo.cs

来自「C#下证书数据库保存、修改、发布。在WINDOWS环境软件下成功应用」· CS 代码 · 共 41 行

CS
41
字号
using System;

namespace Core.Cryptography
{
    /// <summary>
    /// SessionKeyInfo contains a wrapped session key and the associated Session Key ID. This class
    /// is used to pass a session from the KeyManager to the client.
    /// </summary>
    [Serializable]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.oswsolutions.com/")]
    public class SessionKeyInfo
    {
        private Core.Cryptography.WrappedData _wrappedKey;
        private int _keyId;


        /// <summary>
        /// WrappedKey is an ecrypted session key. It contians the information needed to decrypt
        /// the key by the consumer.
        /// </summary>
        public Core.Cryptography.WrappedData WrappedKey
        {
            get { return _wrappedKey; }
            set { _wrappedKey = value; }
        }

        /// <summary>
        /// The KeyId that can be used to retrieve the key from the KeyManager
        /// </summary>
        public int KeyId
        {
            get { return _keyId; }
            set { _keyId = value; }
        }

        public SessionKeyInfo()
        {
        }

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?