SecurityContextToken Constructor (Byte[])
Initializes a new instance of the SecurityContextToken class using a symmetric key.
Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim keyBytes() As Byte
Dim securityContextToken1 As New SecurityContextToken(keyBytes)
Syntax
'Declaration
Public Sub New( _
ByVal keyBytes() As Byte _
)
public SecurityContextToken(
byte[] keyBytes
);
public: SecurityContextToken(
array<Byte>^ keyBytes
);
public SecurityContextToken(
ubyte[] keyBytes
);
public function SecurityContextToken(
keyBytes : Byte[]
);
Parameters
- keyBytes
The array of type System.Byte containing the symmetric key for the SecurityContextToken.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentException | keyBytes is null. -or- The length of keyBytes is zero. |
Remarks
This constructor sets the Identifier property to a generated GUID.
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
SecurityContextToken Class
Microsoft.Web.Services2.Security.Tokens Namespace