Share via


BinarySecurityToken.ValueType Property

Gets or sets the type of the security token.

Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim binarySecurityToken1 As BinarySecurityToken

Dim returnValue As String
returnValue = binarySecurityToken1.ValueType

Dim sampleValue As String
binarySecurityToken1.ValueType = sampleValue

Syntax

'Declaration
Public Overridable Property ValueType() As String
public virtual string ValueType {get; set;}
public:
property virtual String^ ValueType {
    String^ get();
    void set(String^ value);
}
virtual public System.String get_ValueType();
public void set_ValueType(System.String);
public function get ValueType() : String;
public function set ValueType(String);

Property Value

The type of the security token.

Exceptions

Exception type Condition
SecurityFormatException

The namespace of valueType is null or is a string of zero length.

Remarks

The WS-Security specification specifies that when a binary security token is contained or referenced within a SOAP message, its value type, which indicates the security token type, should be specified. The value type value for a given security token, however differs depending on whether the security token is contained within the SOAP message or it is referenced within the SOAP message. The WSSecurity.ValueTypes and WSTrust.TokenTypes classes contain string constants for security tokens natively supported by WSE that are contained within a SOAP message. Whereas, the KeyIdentifier.ValueTypes class contains string constants representing the value types for the security tokens natively supported by WSE that are referenced within a <KeyIdentifier> XML element.

This property returns a string that must be registered in the application configuration file.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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
WSSecurity.ValueTypes