Saml2SecurityTokenHandler.GetEncryptingCredentials(SecurityTokenDescriptor) 方法
定义
获取标记的加密凭据。Gets the token encrypting credentials. 重写此方法以更改标记的加密凭据。Override this method to change the token encrypting credentials.
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 对象中检索某个范围加密凭据。Retrieves some scope encrypting credentials from the Scope object.
返回
表示标志加密凭据的 EncryptingCredentials。An EncryptingCredentials that represents the token encrypting credentials.
例外
tokenDescriptor 为 null。tokenDescriptor is null.
从标记描述符检索的加密凭据是不对称的。The encrypting credentials retrieved from the token descriptor are asymmetric.
注解
默认实现从的属性中检索加密凭据 EncryptingCredentials tokenDescriptor 。The default implementation retrieves the encrypting credentials from the EncryptingCredentials property of the tokenDescriptor.