Edit

Share via


RequestSecurityToken Constructors

Definition

Initializes a new instance of the RequestSecurityToken class.

Overloads

RequestSecurityToken()

Initializes a new instance of the RequestSecurityToken class.

RequestSecurityToken(String)

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

RequestSecurityToken(String, String)

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

RequestSecurityToken()

Initializes a new instance of the RequestSecurityToken class.

public:
 RequestSecurityToken();
public RequestSecurityToken ();
Public Sub New ()

Remarks

The RequestType property and KeyType property are initialized to null.

This constructor is usually used by the receiver.

Applies to

RequestSecurityToken(String)

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

public:
 RequestSecurityToken(System::String ^ requestType);
public RequestSecurityToken (string requestType);
new System.IdentityModel.Protocols.WSTrust.RequestSecurityToken : string -> System.IdentityModel.Protocols.WSTrust.RequestSecurityToken
Public Sub New (requestType As String)

Parameters

requestType
String

A string that contains the request type URI.

Remarks

The KeyType property is initialized to null.

This constructor is usually used by the sender.

Applies to

RequestSecurityToken(String, String)

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

public:
 RequestSecurityToken(System::String ^ requestType, System::String ^ keyType);
public RequestSecurityToken (string requestType, string keyType);
new System.IdentityModel.Protocols.WSTrust.RequestSecurityToken : string * string -> System.IdentityModel.Protocols.WSTrust.RequestSecurityToken
Public Sub New (requestType As String, keyType As String)

Parameters

requestType
String

A string that contains the request type URI.

keyType
String

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

Remarks

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.

Applies to