美文网首页
Subject vs. User vs. Principal i

Subject vs. User vs. Principal i

作者: go_mars | 来源:发表于2017-06-16 14:37 被阅读40次

When an application uses JAAS authentication to authenticate the user (or other entity such as a service), a Subject is created as a result. The purpose of the Subject is to represent the authenticated user. A Subject is comprised of a set of Principals, where each Principal represents an identity for that user. For example, a Subject could have a name Principal ("Susan Smith") and a Social Security Number Principal ("987-65-4321"), thereby distinguishing this Subject from other Subjects.

相关文章

网友评论

      本文标题:Subject vs. User vs. Principal i

      本文链接:https://www.haomeiwen.com/subject/vfqmqxtx.html