setProtectedHeader method
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;
}