JwtSecurityTokenHandler.InboundAlgorithmMap Property

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

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

Syntax

'Declaration
Public Shared Property InboundAlgorithmMap As IDictionary(Of String, String)
public static IDictionary<string, string> InboundAlgorithmMap { get; set; }
public:
static property IDictionary<String^, String^>^ InboundAlgorithmMap {
    IDictionary<String^, String^>^ get ();
    void set (IDictionary<String^, String^>^ value);
}
static member InboundAlgorithmMap : IDictionary<string, string> with get, set
static function get InboundAlgorithmMap () : IDictionary<String, String>
static function set InboundAlgorithmMap (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 that are understood by the runtime are not necessarily the same values used in the JsonWebToken specification.When a JwtSecurityToken signature is validated, the algorithm is obtained from the HeaderParameter { alg, 'value' }. The 'value' is translated according to this mapping and the translated 'value' is used when performing cryptographic operations.

Default mapping is:

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

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

.NET Framework Security

See Also

Reference

JwtSecurityTokenHandler Class

System.IdentityModel.Tokens Namespace