UseKey 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 UseKey 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| UseKey() |
初始化 UseKey 類別的新執行個體。 |
| UseKey(SecurityKeyIdentifier) |
使用指定的安全金鑰識別碼初始化該 UseKey 類別的新實例。 |
| UseKey(SecurityToken) |
使用指定的安全標記初始化該 UseKey 類別的新實例。 |
| UseKey(SecurityKeyIdentifier, SecurityToken) |
使用指定的安全金鑰識別碼和安全標記初始化該類別的新實例 UseKey 。 |
UseKey()
UseKey(SecurityKeyIdentifier)
使用指定的安全金鑰識別碼初始化該 UseKey 類別的新實例。
public:
UseKey(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski);
public UseKey(System.IdentityModel.Tokens.SecurityKeyIdentifier ski);
new System.IdentityModel.Protocols.WSTrust.UseKey : System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.IdentityModel.Protocols.WSTrust.UseKey
Public Sub New (ski As SecurityKeyIdentifier)
參數
SecurityKeyIdentifier A 代表應該使用的現有金鑰。
備註
如果請求者知道如何將權杖轉換成安全金鑰識別碼,或該令牌本身就是安全金鑰識別碼,請使用此構造子。
適用於
UseKey(SecurityToken)
使用指定的安全標記初始化該 UseKey 類別的新實例。
public:
UseKey(System::IdentityModel::Tokens::SecurityToken ^ token);
public UseKey(System.IdentityModel.Tokens.SecurityToken token);
new System.IdentityModel.Protocols.WSTrust.UseKey : System.IdentityModel.Tokens.SecurityToken -> System.IdentityModel.Protocols.WSTrust.UseKey
Public Sub New (token As SecurityToken)
參數
- token
- SecurityToken
SecurityToken A 代表應該使用的現有金鑰。
備註
SecurityKeyIdentifier該屬性在新null實例中被設定為 。UseKey
適用於
UseKey(SecurityKeyIdentifier, SecurityToken)
使用指定的安全金鑰識別碼和安全標記初始化該類別的新實例 UseKey 。
public:
UseKey(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski, System::IdentityModel::Tokens::SecurityToken ^ token);
public UseKey(System.IdentityModel.Tokens.SecurityKeyIdentifier ski, System.IdentityModel.Tokens.SecurityToken token);
new System.IdentityModel.Protocols.WSTrust.UseKey : System.IdentityModel.Tokens.SecurityKeyIdentifier * System.IdentityModel.Tokens.SecurityToken -> System.IdentityModel.Protocols.WSTrust.UseKey
Public Sub New (ski As SecurityKeyIdentifier, token As SecurityToken)
參數
SecurityKeyIdentifier A 代表應該使用的現有金鑰。
- token
- SecurityToken
SecurityToken A 代表應該使用的現有金鑰。
備註
使用此建構子將更多資訊從序列器傳遞給安全令牌服務(STS)。