UseKey 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 UseKey 類別的新執行個體。
多載
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。
備註
如果要求者知道如何將令牌轉換成安全性密鑰標識碼,或令牌已經是安全性密鑰標識碼,請使用這個建構函式。
屬性Token會在新的 UseKey 實體中設定為 null
。
適用於
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。
備註
屬性SecurityKeyIdentifier會在新的 UseKey 實體中設定為 null
。
適用於
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。
- token
- SecurityToken
表示應使用之現有金鑰的 SecurityToken。
備註
使用此建構函式,從串行化程式將更多資訊傳遞給安全性令牌服務 (STS) 。