setProtectedHeader method

void setProtectedHeader(
  1. String key,
  2. dynamic value
)

Sets a shared protected header parameter

Protected header parameters are integrity protected by the signing or authenticated encryption algorithm. In case of non json payload, protected header parameters can be used to integrity check additional claims.

Implementation

void setProtectedHeader(String key, dynamic value) {
  _protectedHeaderParameters[key] = value;
}