SecurityTokenManager.CreateTokenKeyAlgorithm Method
Gets the cryptographic algorithm that creates keys for a specific security token type.
Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim tokenType As String
Dim algorithmType As Type
Dim returnValue As KeyAlgorithm
returnValue = SecurityTokenManager.CreateTokenKeyAlgorithm(tokenType, algorithmType)
Syntax
'Declaration
Public Shared Function CreateTokenKeyAlgorithm( _
ByVal tokenType As String, _
ByVal algorithmType As Type _
) As KeyAlgorithm
public static KeyAlgorithm CreateTokenKeyAlgorithm(
string tokenType,
Type algorithmType
);
public:
static KeyAlgorithm^ CreateTokenKeyAlgorithm(
String^ tokenType,
Type^ algorithmType
);
public static KeyAlgorithm CreateTokenKeyAlgorithm(
System.String tokenType,
Type algorithmType
);
public static function CreateTokenKeyAlgorithm(
tokenType : String,
algorithmType : Type
) : KeyAlgorithm;
Parameters
- tokenType
The XML qualified name for the type of security token to get the cryptographic algorithm for.
- algorithmType
A Type specifying the cryptographic algorithm to use.
Return Value
A KeyAlgorithm containing the cryptographic algorithm for the specific security token type.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | tokenType is null. |
ConfigurationException | A security token manager is not registered for the specified security token type. -or- The specified cryptographic algorithm does not match the default cryptographic algorithm for the specified security token type. |
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