简体   繁体   English

Java身份验证和授权

[英]Java Authentication and Authorization

Can anyone comment on this scenario belong to authentication or authorization 任何人都可以对此场景发表评论属于身份验证或授权

Authentication : User is logging with username & password - called authentication. 身份验证:用户正在使用用户名和密码登录-称为身份验证。

Authorization : User has some role - called authorization. 授权:用户具有某种角色-称为授权。

If I have only username and user Id and want to check from DB what it called ? 如果我只有用户名和用户ID,并且想从数据库检查它叫什么? Authorization or Authentication ? 授权还是认证?

Could anyone comment on this ? 有人可以对此发表评论吗?

Thanks 谢谢

Authentication is the check if someone is the person he/she says he/she is (eg by asking for a password ). 身份验证是检查某人是否是他/她说的人(例如,通过询问密码 )。 Authorization is the check if someone has the right to do something. 授权是检查某人是否有权做某事。

So in your case that database isn't able to check authentication. 因此,在您的情况下,数据库无法检查身份验证。 If the information about what the user is allowed to do can be extracted from the data within the database then this'd be authorization . 如果可以从数据库中的数据中提取有关允许用户执行的操作的信息,则这将是授权

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Java Web身份验证和授权 - Java Web Authentication and Authorization 通过Java应用程序使用Apache进行证书认证和授权 - Certificate Authentication and Authorization with Apache from a Java Application Java:使用iOS / Android / Angular作为客户端的身份验证和授权 - Java: Authentication and Authorization with iOS/Android/Angular as client RESTfull API的身份验证和授权(java jersery) - Authentication and authorization for RESTfull API (java jersery) 使用域驱动设计在Java中实现授权和认证 - implement Authorization & Authentication in Java With Domain Driven Design 核心Java应用程序中的安全身份验证和授权 - Secure Authentication and Authorization in core Java Application 授权标头在基本身份验证JAVA中不起作用 - Authorization Header not working in Basic Authentication JAVA 在Android上使用JAAS(Java身份验证和授权服务) - Using JAAS (Java Authentication and Authorization Service) on Android 自动化任务的Java EE身份验证/授权 - Java EE authentication/authorization for automated task MSAL (Java) Rest API 身份验证(授权:不记名令牌) - MSAL (Java) Rest API Authentication ( Authorization : Bearer Token )
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM