Skip navigation links

Package org.apereo.cas.authentication.principal

Credentials is a marker interface for an opaque object that may be recognized by Handlers and Resolvers.

See: Description

Package org.apereo.cas.authentication.principal Description

Credentials is a marker interface for an opaque object that may be recognized by Handlers and Resolvers. Credentials may be a UserId/Password, Certificate, RemoteUser, IP address, etc.

When the authentication manager is used, that bean is configured with a list of AuthenticationHandler that validate Credentials and PrincipalResolver that turn Credential objects into into Principal objects.

The Authentication Handler validates credentials and in certain cases is able extract information. The extraction use case is clearer when credentials are certificates. A certificate is valid if you trust the CA, if it hasn't expired, and if it isn't revoked. You can decide all this, and still not have the foggiest idea what ID to give to the person (if it is a person) represented by the Certificate.

The PrincipalResolver looks into previously validated credentials to construct a Principal object containing an ID (and in more complex cases some attributes). The ProxyingPrincipalResolver takes credentials and creates a SimplePrincipal containing the Userid.

Since:
3.0
Skip navigation links