📄 sessionkeyinfo.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -