public interface PrincipalResolver
Principal from a Credential using an arbitrary strategy.
Since a Principal requires an identifier at a minimum, the simplest strategy to produce a principal
is to simply copy Credential.getId() onto
Principal.getId(). Resolvers commonly query one or more data sources
to obtain attributes such as affiliations, group membership, display name, and email. The data source(s) may also
provide an alternate identifier mapped by the credential identifier.Principal,
Credential| Modifier and Type | Method and Description |
|---|---|
Principal |
resolve(Credential credential)
Resolves a principal from the given credential using an arbitrary strategy.
|
boolean |
supports(Credential credential)
Determines whether this instance supports principal resolution from the given credential.
|
Principal resolve(Credential credential)
credential - Source credential.boolean supports(Credential credential)
resolve(org.jasig.cas.authentication.Credential).credential - The credential to check for support.Copyright © 2004-2015 Apereo. All Rights Reserved.