SymmetricProofDescriptor 构造函数
定义
初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class.
重载
| SymmetricProofDescriptor(EncryptingCredentials) |
使用指定的加密凭据初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with the specified encrypting credentials. |
| SymmetricProofDescriptor(Byte[], EncryptingCredentials) |
使用指定密钥材料初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with the specified key material. |
| SymmetricProofDescriptor(Int32, EncryptingCredentials) |
使用自动生成的密钥初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with an auto-generated key. |
| SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials) |
使用自动生成的密钥初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with an auto-generated key. |
| SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials, Byte[]) |
初始化 SymmetricProofDescriptor 类的新实例用以发送联合的平均信息量。Initializes a new instance of the SymmetricProofDescriptor class to use for sending combined entropy. |
| SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials, String) |
使用此构造函数包含自动生成的 STS 密钥并将其作为加密密钥在证明标记中发送。Use this constructor to have the STS autogenerate a key and send it in the proof token as encrypted key. 包括以下两种情况:1. Two cases are covered here 1. 客户端发送熵,但服务器会拒绝它。2.client sends the entropy, but server rejects it 2. 客户端不会发送熵,因此仅使用服务器的熵。client did not send a entropy, so just use server's entropy. |
| SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials, Byte[], String) |
初始化 SymmetricProofDescriptor 类的新实例用以发送联合的平均信息量。Initializes a new instance of the SymmetricProofDescriptor class to use for sending combined entropy. |
SymmetricProofDescriptor(EncryptingCredentials)
使用指定的加密凭据初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with the specified encrypting credentials.
public:
SymmetricProofDescriptor(System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials);
public SymmetricProofDescriptor (System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (targetWrappingCredentials As EncryptingCredentials)
参数
- targetWrappingCredentials
- EncryptingCredentials
要使用的 EncryptingCredentials。The EncryptingCredentials to be used.
注解
如果你希望 STS 使用指定的,请使用此构造函数 EncryptingCredentials 。Use this constructor if you want the STS to use the specified EncryptingCredentials.
适用于
SymmetricProofDescriptor(Byte[], EncryptingCredentials)
使用指定密钥材料初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with the specified key material.
public:
SymmetricProofDescriptor(cli::array <System::Byte> ^ key, System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials);
public SymmetricProofDescriptor (byte[] key, System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : byte[] * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (key As Byte(), targetWrappingCredentials As EncryptingCredentials)
参数
- key
- Byte[]
在发布令牌内部使用的对称密钥。The symmetric key that is used inside the issued token.
- targetWrappingCredentials
- EncryptingCredentials
依赖的一方的密钥加密凭据。The key encrypting credentials for the relying party.
例外
key 为 null。key is null.
注解
如果你希望 STS 使用指定的密钥字节,请使用此构造函数。Use this constructor if you want the STS to use the specified key bytes. 如果客户端发送熵,STS 只是将其用作已颁发令牌的密钥,则会发生这种情况。This happens when client sends the entropy, and the STS would just use that as the key for the issued token.
适用于
SymmetricProofDescriptor(Int32, EncryptingCredentials)
使用自动生成的密钥初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with an auto-generated key.
public:
SymmetricProofDescriptor(int keySizeInBits, System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials);
public SymmetricProofDescriptor (int keySizeInBits, System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : int * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (keySizeInBits As Integer, targetWrappingCredentials As EncryptingCredentials)
参数
- keySizeInBits
- Int32
对称密钥的大小。The size of the symmetric key.
- targetWrappingCredentials
- EncryptingCredentials
请求目标的密钥加密凭据。The key encrypting credentials for the target of the request.
注解
如果你希望 STS 使用随机数生成器自动生成密钥并将其作为二进制机密发送到证明令牌,请使用此构造函数。Use this constructor if you want the STS to auto-generate the key using a random number generator and send it in the proof token as a binary secret.
适用于
SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials)
使用自动生成的密钥初始化 SymmetricProofDescriptor 类的新实例。Initializes a new instance of the SymmetricProofDescriptor class with an auto-generated key.
public:
SymmetricProofDescriptor(int keySizeInBits, System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials, System::IdentityModel::Tokens::EncryptingCredentials ^ requestorWrappingCredentials);
public SymmetricProofDescriptor (int keySizeInBits, System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials, System.IdentityModel.Tokens.EncryptingCredentials requestorWrappingCredentials);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : int * System.IdentityModel.Tokens.EncryptingCredentials * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (keySizeInBits As Integer, targetWrappingCredentials As EncryptingCredentials, requestorWrappingCredentials As EncryptingCredentials)
参数
- keySizeInBits
- Int32
对称密钥的大小。The size of the symmetric key.
- targetWrappingCredentials
- EncryptingCredentials
请求目标的密钥加密凭据。The key encrypting credentials for the target of the request.
- requestorWrappingCredentials
- EncryptingCredentials
请求者的密钥加密凭据。The key encrypting credentials for the requestor.
例外
keySizeInBits 小于或等于零。keySizeInBits is less than or equal to zero.
注解
如果你希望 STS 自动生成密钥并将其作为加密密钥发送到证明令牌,请使用此构造函数。Use this constructor if you want the STS to auto-generate the key and send it in the proof token as encrypted key. 使用此构造函数可以覆盖两种情况:Two cases can be covered by using this constructor:
客户端发送熵,但服务器拒绝这种情况。The client sends the entropy, but the server rejects it.
客户端不发送熵,因此使用服务器的平均信息量。The client does not send the entropy, so the server's entropy is used.
适用于
SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials, Byte[])
初始化 SymmetricProofDescriptor 类的新实例用以发送联合的平均信息量。Initializes a new instance of the SymmetricProofDescriptor class to use for sending combined entropy.
public:
SymmetricProofDescriptor(int keySizeInBits, System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials, System::IdentityModel::Tokens::EncryptingCredentials ^ requestorWrappingCredentials, cli::array <System::Byte> ^ sourceEntropy);
public SymmetricProofDescriptor (int keySizeInBits, System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials, System.IdentityModel.Tokens.EncryptingCredentials requestorWrappingCredentials, byte[] sourceEntropy);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : int * System.IdentityModel.Tokens.EncryptingCredentials * System.IdentityModel.Tokens.EncryptingCredentials * byte[] -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (keySizeInBits As Integer, targetWrappingCredentials As EncryptingCredentials, requestorWrappingCredentials As EncryptingCredentials, sourceEntropy As Byte())
参数
- keySizeInBits
- Int32
对称密钥的大小。The size of the symmetric key.
- targetWrappingCredentials
- EncryptingCredentials
请求目标的密钥加密凭据。The key encrypting credentials for the target of the request.
- requestorWrappingCredentials
- EncryptingCredentials
请求者的加密的凭据用于加密平均信息量或证明标识。The encrypting credentials for the requestor used to encrypt the entropy or the proof token.
- sourceEntropy
- Byte[]
请求者的平均信息量。The requestor's entropy.
例外
sourceEntropy 为 null 或是空数组。sourceEntropy is null or an empty array.
keySize 小于零。keySize is less than zero.
注解
如果要发送组合的熵,请使用此构造函数。Use this constructor if you want to send a combined entropy.
适用于
SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials, String)
使用此构造函数包含自动生成的 STS 密钥并将其作为加密密钥在证明标记中发送。Use this constructor to have the STS autogenerate a key and send it in the proof token as encrypted key. 包括以下两种情况:1. Two cases are covered here 1. 客户端发送熵,但服务器会拒绝它。2.client sends the entropy, but server rejects it 2. 客户端不会发送熵,因此仅使用服务器的熵。client did not send a entropy, so just use server's entropy.
public:
SymmetricProofDescriptor(int keySizeInBits, System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials, System::IdentityModel::Tokens::EncryptingCredentials ^ requestorWrappingCredentials, System::String ^ encryptWith);
public SymmetricProofDescriptor (int keySizeInBits, System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials, System.IdentityModel.Tokens.EncryptingCredentials requestorWrappingCredentials, string encryptWith);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : int * System.IdentityModel.Tokens.EncryptingCredentials * System.IdentityModel.Tokens.EncryptingCredentials * string -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (keySizeInBits As Integer, targetWrappingCredentials As EncryptingCredentials, requestorWrappingCredentials As EncryptingCredentials, encryptWith As String)
参数
- keySizeInBits
- Int32
对称密钥的大小。The size of the symmetric key.
- targetWrappingCredentials
- EncryptingCredentials
依赖的一方的密钥加密凭据。The key encrypting credentials for the relying party.
- requestorWrappingCredentials
- EncryptingCredentials
请求者的密钥加密凭据。The key encrypting credentials for the requestor.
- encryptWith
- String
RST 的 <EncryptWith> 元素中指定的算法 (URI)。The algorithm (URI) specified in the <EncryptWith> element of the RST.
例外
keySizeInBits 小于或等于零。keySizeInBits is less than or equal to zero.
注解
如果 encryptWith 是 DES 算法,则保证密钥不是弱 DES 密钥。If encryptWith is a DES algorithm, the key is guaranteed not to be a weak DES key.
如果你希望 STS 自动生成密钥并将其作为加密密钥发送到证明令牌,请使用此构造函数。Use this constructor if you want the STS to auto-generate the key and send it in the proof token as encrypted key. 使用此构造函数可以覆盖两种情况:Two cases can be covered by using this constructor:
客户端发送熵,但服务器拒绝这种情况。The client sends the entropy, but the server rejects it.
客户端不发送熵,因此使用服务器的平均信息量。The client does not send the entropy, so the server's entropy is used.
适用于
SymmetricProofDescriptor(Int32, EncryptingCredentials, EncryptingCredentials, Byte[], String)
初始化 SymmetricProofDescriptor 类的新实例用以发送联合的平均信息量。Initializes a new instance of the SymmetricProofDescriptor class to use for sending combined entropy.
public:
SymmetricProofDescriptor(int keySizeInBits, System::IdentityModel::Tokens::EncryptingCredentials ^ targetWrappingCredentials, System::IdentityModel::Tokens::EncryptingCredentials ^ requestorWrappingCredentials, cli::array <System::Byte> ^ sourceEntropy, System::String ^ encryptWith);
public SymmetricProofDescriptor (int keySizeInBits, System.IdentityModel.Tokens.EncryptingCredentials targetWrappingCredentials, System.IdentityModel.Tokens.EncryptingCredentials requestorWrappingCredentials, byte[] sourceEntropy, string encryptWith);
new System.IdentityModel.Tokens.SymmetricProofDescriptor : int * System.IdentityModel.Tokens.EncryptingCredentials * System.IdentityModel.Tokens.EncryptingCredentials * byte[] * string -> System.IdentityModel.Tokens.SymmetricProofDescriptor
Public Sub New (keySizeInBits As Integer, targetWrappingCredentials As EncryptingCredentials, requestorWrappingCredentials As EncryptingCredentials, sourceEntropy As Byte(), encryptWith As String)
参数
- keySizeInBits
- Int32
对称密钥的大小。The size of the symmetric key.
- targetWrappingCredentials
- EncryptingCredentials
信赖方的加密凭据用于加密在 SecurityKeyIdentifier 属性中的键。The encrypting credentials for the relying party used to encrypt the key in the SecurityKeyIdentifier property.
- requestorWrappingCredentials
- EncryptingCredentials
请求者的加密的凭据用于加密平均信息量或证明标识。The encrypting credentials for the requestor used to encrypt the entropy or the proof token.
- sourceEntropy
- Byte[]
请求者的平均信息量。The requestor's entropy.
- encryptWith
- String
使用加密校验密钥的 URI 算法。The URI of the algorithm to use to encrypt the proof key.
例外
keySizeInBits 小于或等于零。keySizeInBits is less than or equal to zero.
sourceEntropy 为 null 或是空数组。sourceEntropy is null or an empty array.
注解
使用此构造函数发送组合熵。Use this constructor to send combined entropy.