public abstract class AbstractPersonDirectoryCredentialsToPrincipalResolver extends Object implements CredentialsToPrincipalResolver
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log
Log instance.
|
| Constructor and Description |
|---|
AbstractPersonDirectoryCredentialsToPrincipalResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
extractPrincipalId(Credentials credentials)
Extracts the id of the user from the provided credentials.
|
Principal |
resolvePrincipal(Credentials credentials)
Turn Credentials into a Principal object by analyzing the information
provided in the Credentials and constructing a Principal object based on
that information or information derived from the Credentials object.
|
void |
setAttributeRepository(org.jasig.services.persondir.IPersonAttributeDao attributeRepository) |
void |
setReturnNullIfNoAttributes(boolean returnNullIfNoAttributes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic AbstractPersonDirectoryCredentialsToPrincipalResolver()
public final Principal resolvePrincipal(Credentials credentials)
CredentialsToPrincipalResolverresolvePrincipal in interface CredentialsToPrincipalResolvercredentials - from which to resolve Principalprotected abstract String extractPrincipalId(Credentials credentials)
credentials - the credentials provided by the user.public final void setAttributeRepository(org.jasig.services.persondir.IPersonAttributeDao attributeRepository)
public void setReturnNullIfNoAttributes(boolean returnNullIfNoAttributes)
Copyright © 2004-2012 Jasig. All Rights Reserved.