BinarySecurityToken Constructor (String, String)
Initializes a new instance of the BinarySecurityToken class using the specified value type and token type.
Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim valueType As String
Dim tokenType As String
Dim binarySecurityToken1 As New BinarySecurityToken(valueType, tokenType)
Syntax
'Declaration
Protected Sub New( _
ByVal valueType As String, _
ByVal tokenType As String _
)
protected BinarySecurityToken(
string valueType,
string tokenType
);
protected:
BinarySecurityToken(
String^ valueType,
String^ tokenType
);
protected BinarySecurityToken(
System.String valueType,
System.String tokenType
);
protected function BinarySecurityToken(
valueType : String,
tokenType : String
);
Parameters
- valueType
The value type of the security token.
- tokenType
The type of security token.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | valueType is null. |
Remarks
The WSSecurity.ValueTypes class contains constant strings of the value types for security tokens natively supported by WSE.
The specified value type must be registered in the application configuration file.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
BinarySecurityToken Class
BinarySecurityToken Members
Microsoft.Web.Services3.Security.Tokens Namespace