RequestSecurityToken Constructor (String, String)

.NET Framework (current version)
 

Initializes a new instance of the RequestSecurityToken class with the specified request type.

Namespace:   System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public RequestSecurityToken(
	string requestType,
	string keyType
)

Parameters

requestType
Type: System.String

A string that contains the request type URI.

keyType
Type: System.String

A string that contains the key type URI. This should be one of the constants defined by the KeyTypes class.

The following table shows the initial value of the KeySizeInBits property for specific values of the keyType parameter.

keyType parameter

KeySizeInBits property

Asymmetric

1024

Bearer

0

Symmetric

256

This constructor is usually used by the sender.

.NET Framework
Available since 4.5
Return to top
Show: