Freigeben über


AppCompatSwitches.UseRfcDefinitionOfEpkAndKid Field

Definition

Uses KeyExchangePublicKey for the token's kid header parameter. When using ECDH-based key wrap algorithms the public key portion of Key is also written to the token's epk header parameter.

public const string UseRfcDefinitionOfEpkAndKid;
val mutable UseRfcDefinitionOfEpkAndKid : string
Public Const UseRfcDefinitionOfEpkAndKid As String 

Field Value

Remarks

Enabling this switch improves the library's conformance to RFC 7518 with regards to how the header values for `kid` and `epk` are set in ECDH key wrap scenarios. The previous behavior erroneously used key ID of Key as the `kid` parameter, and did not automatically set `epk` as the spec defines. This switch enables the intended behavior where KeyExchangePublicKey is used for `kid` and the public portion of Key is used for `epk`.

Applies to