Edit

Share via


SimpleSecurityTokenProvider(SecurityToken, SecurityTokenRequirement) Constructor

Definition

Initializes a new instance of the SimpleSecurityTokenProvider class by using the specified token and token binding requirements.

public:
 SimpleSecurityTokenProvider(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Selectors::SecurityTokenRequirement ^ tokenRequirement);
public SimpleSecurityTokenProvider (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Selectors.SecurityTokenRequirement tokenRequirement);
new System.ServiceModel.Security.SimpleSecurityTokenProvider : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Selectors.SecurityTokenRequirement -> System.ServiceModel.Security.SimpleSecurityTokenProvider
Public Sub New (token As SecurityToken, tokenRequirement As SecurityTokenRequirement)

Parameters

token
SecurityToken

A SecurityToken that represents the security token to provide.

tokenRequirement
SecurityTokenRequirement

A SecurityTokenRequirement that contains the requirements described by the binding that will use the specified token to secure messages.

Exceptions

token is null.

Remarks

Creates a security token provider that produces a security token as an issued token for federated bindings.

Applies to