public class ChainingPrincipalResolver extends Object implements PrincipalResolver
Credential whose ID is the
resolved princpial ID of the previous resolver.
A common use case for this component is resolving a temporary principal ID from an X.509 credential followed by a search (e.g. LDAP, database) for the final principal based on the temporary ID.
| Constructor and Description |
|---|
ChainingPrincipalResolver() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
resolve(Credential credential)
Resolves a credential by delegating to each of the configured resolvers in sequence.
|
void |
setChain(List<PrincipalResolver> chain)
Sets the resolver chain.
|
boolean |
supports(Credential credential)
Determines whether the credential is supported by this component by delegating to the first configured
resolver in the chain.
|
public void setChain(List<PrincipalResolver> chain)
Credential.getId() alone;
PersonDirectoryPrincipalResolver notably meets that requirement.chain - List of delegate resolvers that are invoked in a chain.public Principal resolve(Credential credential)
PrincipalResolver.supports(org.jasig.cas.authentication.Credential) method is called only for the
first configured resolver.resolve in interface PrincipalResolvercredential - Authenticated credential.public boolean supports(Credential credential)
supports in interface PrincipalResolvercredential - The credential to check for support.Copyright © 2004-2014 Jasig. All Rights Reserved.