Share via


SecurityTokenManager.DefaultKeyAlgorithm Property

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

Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.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 virtual String^ DefaultKeyAlgorithm {
    String^ get();
    void set(String^ value);
}
virtual 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
NotSupportedException

The DefaultKeyAlgorithm property is used.

Remarks

A 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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

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