共用方式為


Saml2SecurityTokenHandler.GetEncryptingCredentials 方法

定義

取得權杖加密認證。 覆寫這個方法,以變更權杖加密認證。

protected:
 virtual System::IdentityModel::Tokens::EncryptingCredentials ^ GetEncryptingCredentials(System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.EncryptingCredentials GetEncryptingCredentials (System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member GetEncryptingCredentials : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.EncryptingCredentials
override this.GetEncryptingCredentials : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.EncryptingCredentials
Protected Overridable Function GetEncryptingCredentials (tokenDescriptor As SecurityTokenDescriptor) As EncryptingCredentials

參數

tokenDescriptor
SecurityTokenDescriptor

擷取 Scope 物件的某些範圍加密憑證。

傳回

表示權杖加密認證的 EncryptingCredentials

例外狀況

tokenDescriptornull

擷取自語彙基元描述元的加密憑證是非對稱式。

備註

默認實作會從 EncryptingCredentials 的屬性擷取加密認證 tokenDescriptor

適用於