Share via


SecurityTokenManager.DefaultKeyAlgorithm Property

Gets or sets the default key algorithm name for the given token type.

Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim securityTokenManager1 As SecurityTokenManager

Dim returnValue As String
returnValue = securityTokenManager1.DefaultKeyAlgorithm

Dim sampleValue As String
securityTokenManager1.DefaultKeyAlgorithm = sampleValue

Syntax

'Declaration
Public Overridable Property DefaultKeyAlgorithm() As String
public virtual string DefaultKeyAlgorithm {get; set;}
public: property String^ DefaultKeyAlgorithm{
    String^ get();
    Void set(String^);
}
public System.String get_DefaultKeyAlgorithm();
public void set_DefaultKeyAlgorithm(System.String);
public function get DefaultKeyAlgorithm() : String;
public function set DefaultKeyAlgorithm(String);

Property Value

The default key algorithm name for the given token type.

Exceptions

Exception type Condition
System.NotSupportedException

The DefaultKeyAlgorithm property is used.

Remarks

A System.NotSupportedException is thrown because the DefaultKeyAlgorithm property is not supported by instances of the SecurityTokenManager class. However, classes derived from SecurityTokenManager can implement this property.

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 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

SecurityTokenManager Class
Microsoft.Web.Services2.Security.Tokens Namespace

Other Resources

SecurityTokenManager Members