JWT的私人索赔和公共索赔之间有什么区别 [英] What is difference between private and public claims on jwt

查看:89
本文介绍了JWT的私人索赔和公共索赔之间有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

私人和公共对jwt的主张有什么区别?

What is difference between private and public claims on jwt?

我对这两个主张之间的区别感到困惑.据我了解,它们都是自定义声明.那有什么区别?

I'm confused with the difference between those two claims. From what I understand they are both custom claims. So what is the difference?

推荐答案

公开声明

要求具有防碰撞功能的自定义声明名称.它们的名称应为UUID或以URL开头,以为它们创建安全的名称空间并避免冲突.

Public claims

Custom claim names that are required to be collision resistant. Their names should be UUIDs or prefixed by a URL to create a safe namespace for them and avoid collisions.

不需要抗冲突的自定义声明名称.

Custom claim names that are not required to be collision resistant.

私人和公共对jwt的主张有什么区别?

What is difference between private and public claims on jwt?

唯一的区别是,公共要求必须具有普遍的防撞能力,而私人要求则不能.

Only difference is public claims are required to be universally collision resistant while private claims are not.

这篇关于JWT的私人索赔和公共索赔之间有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆