RequestSecurityToken Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the RequestSecurityToken class.
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. |
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
.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 |
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
.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 |
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
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: