Share via


DerivedKeyToken Constructor (IDerivableToken, Boolean)

Initializes a new instance of the DerivedKeyToken class using a security token and whether the security token is only used to digitally sign SOAP messages.

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

Usage

'Usage
Dim parent As IDerivableToken
Dim isForSigningOnly As Boolean
Dim derivedKeyToken1 As New DerivedKeyToken(parent, isForSigningOnly)

Syntax

'Declaration
Public Sub New( _
    ByVal parent As IDerivableToken, _
    ByVal isForSigningOnly As Boolean _
)
public DerivedKeyToken(
    IDerivableToken parent, 
    bool isForSigningOnly
);
public:
DerivedKeyToken(
    IDerivableToken^ parent, 
    bool isForSigningOnly
);
public DerivedKeyToken(
    IDerivableToken parent, 
    boolean isForSigningOnly
);
public function DerivedKeyToken(
     parent : IDerivableToken, 
     isForSigningOnly : Boolean
);

Parameters

  • isForSigningOnly
    true when the DerivedKeyToken is only used to digitally sign a SOAP message; otherwise, false.

Remarks

When the isForSigningOnly parameter is true, the length of the key is controlled by the <signatureKeyLength> Element. When the isForSigningOnly parameter is false, the key length is defined by the key algorithm for DerivedKeyToken security tokens. The default key algorithm for DerivedKeyToken security tokens is AES256, which has a key length of 256 bits.

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
IDerivableToken
SecurityContextToken
KerberosToken

Other Resources

<signatureKeyLength> Element