WrappedKeySecurityToken(String, Byte[], String, SecurityToken, SecurityKeyIdentifier) 构造函数

定义

初始化 WrappedKeySecurityToken 类的新实例。Initializes a new instance of the WrappedKeySecurityToken class.

public:
 WrappedKeySecurityToken(System::String ^ id, cli::array <System::Byte> ^ keyToWrap, System::String ^ wrappingAlgorithm, System::IdentityModel::Tokens::SecurityToken ^ wrappingToken, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ wrappingTokenReference);
public WrappedKeySecurityToken (string id, byte[] keyToWrap, string wrappingAlgorithm, System.IdentityModel.Tokens.SecurityToken wrappingToken, System.IdentityModel.Tokens.SecurityKeyIdentifier wrappingTokenReference);
new System.ServiceModel.Security.Tokens.WrappedKeySecurityToken : string * byte[] * string * System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.ServiceModel.Security.Tokens.WrappedKeySecurityToken
Public Sub New (id As String, keyToWrap As Byte(), wrappingAlgorithm As String, wrappingToken As SecurityToken, wrappingTokenReference As SecurityKeyIdentifier)

参数

id
String

密钥令牌的 ID。The ID of the key token.

keyToWrap
Byte[]

要包装的密钥。The key to be wrapped.

wrappingAlgorithm
String

用于执行包装的算法。The algorithm used to do the wrapping.

wrappingToken
SecurityToken

一个表示包装令牌的 SecurityTokenA SecurityToken that represents the wrapping token.

wrappingTokenReference
SecurityKeyIdentifier

一个 SecurityKeyIdentifier,表示对包装令牌的引用。A SecurityKeyIdentifier that represents a reference to the wrapping token.

适用于