知识卡片
JWT三段承载元数据与声明
紧凑型签名 JWT 通常由点号分隔的头部、载荷和签名组成。头部标识算法等元数据,载荷承载声明,签名用于验证完整性与签发者;编码并不等于加密,载荷不宜放秘密。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 11 章《API authorization and authentication》(源文件:_epub-src/OEBPS/Text/11.htm)
- 结论依据:原文说明三段结构;签名与编码的安全边界按 RFC 7519 理解,避免把 HS256/RS256 误称为加密。https://www.rfc-editor.org/rfc/rfc7519.html
- 原始内容:a JSON Web Token document has three sections: Header —Identifies the type of token as well as the algorithm and the key that were used sign the token.