JwtSecurityTokenHandler.OutboundAlgorithmMap Property

Gets or sets the IDictionary<TKey, TValue> used to map Outbound Cryptographic Algorithms.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)

Syntax

'Declaration
Public Shared Property OutboundAlgorithmMap As IDictionary(Of String, String)
public static IDictionary<string, string> OutboundAlgorithmMap { get; set; }
public:
static property IDictionary<String^, String^>^ OutboundAlgorithmMap {
    IDictionary<String^, String^>^ get ();
    void set (IDictionary<String^, String^>^ value);
}
static member OutboundAlgorithmMap : IDictionary<string, string> with get, set
static function get OutboundAlgorithmMap () : IDictionary<String, String>
static function set OutboundAlgorithmMap (value : IDictionary<String, String>)

Property Value

Type: System.Collections.Generic.IDictionary<String, String>
Returns IDictionary<TKey, TValue>.

Exceptions

Exception Condition
ArgumentNullException

'value' is null.

Remarks

Strings that describe Cryptographic Algorithms understood by the runtime are not necessarily the same in the JsonWebToken specification.This property contains mappings the will be used to when creating a JwtHeader and setting the HeaderParameter { alg, 'value' }. The 'value' set is translated according to this mapping.

Default mapping is:

http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 => RS256

http://www.w3.org/2001/04/xmldsig-more#hmac-sha256 => HS256

.NET Framework Security

See Also

Reference

JwtSecurityTokenHandler Class

System.IdentityModel.Tokens Namespace