BinarySecurityToken Constructor (XmlElement, String)
Initializes a new instance of the BinarySecurityToken class using the specified XML element and value type.
Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim element As XmlElement
Dim valueType As String
Dim binarySecurityToken1 As New BinarySecurityToken(element, valueType)
Syntax
'Declaration
Protected Sub New( _
ByVal element As XmlElement, _
ByVal valueType As String _
)
protected BinarySecurityToken(
XmlElement element,
string valueType
);
protected: BinarySecurityToken(
XmlElement^ element,
String^ valueType
);
protected BinarySecurityToken(
XmlElement element,
System.String valueType
);
protected function BinarySecurityToken(
element : XmlElement,
valueType : String
);
Parameters
- element
An System.Xml.XmlElement from which a new BinarySecurityToken is created.
- valueType
The value type of the security token.
Remarks
The element parameter is a <BinarySecurityToken> element from a received SOAP message.
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 Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
BinarySecurityToken Class
Microsoft.Web.Services2.Security.Tokens Namespace