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 ();

Remarks

The RequestType property and KeyType property are initialized to null.

This constructor is usually used by the receiver.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RequestSecurityToken(String)

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

public RequestSecurityToken (string requestType);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RequestSecurityToken(String, String)

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

public RequestSecurityToken (string requestType, string keyType);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1