Share via


DerivedKeyToken.Label Property

Gets or sets the label parameter for the key derivation algorithm.

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

Usage

'Usage
Dim derivedKeyToken1 As DerivedKeyToken

Dim returnValue As String
returnValue = derivedKeyToken1.Label

Dim sampleValue As String
derivedKeyToken1.Label = sampleValue

Syntax

'Declaration
Public Property Label() As String
public string Label {get; set;}
public:
property String^ Label {
    String^ get();
    void set(String^ value);
}
public System.String get_Label();
public void set_Label(System.String);
public function get Label() : String;
public function set Label(String);

Property Value

The label parameter for the key derivation algorithm. The default value is DefaultLabel.

Exceptions

Exception type Condition
ArgumentNullException

Label is set to null.

Remarks

The P_SHA-1 algorithm is used to generate the derived key for the DerivedKeyToken . The parameters for the P_SHA-1 algorithm are a label, nonce, timestamp, and the original key. The value of the Label property is used as the label parameter for the P_SHA-1 algorithm.

When the Parent property is a DerivedKeyToken , the initial value for the Label property of the child DerivedKeyToken is set using the parent's properties. If the Properties property of the parent security token is not null, the initial value of the Label property is set to the value of the Properties.Label property; otherwise, it is set to the Label property of the parent.

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

DerivedKeyToken Class
DerivedKeyToken Members
Microsoft.Web.Services3.Security.Tokens Namespace