public final class UsernamePasswordCredentialsToPrincipalResolver extends AbstractPersonDirectoryCredentialsToPrincipalResolver
Implementation extracts the username from the Credentials provided and constructs a new SimplePrincipal with the unique id set to the username.
SimplePrincipallog| Constructor and Description |
|---|
UsernamePasswordCredentialsToPrincipalResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
extractPrincipalId(Credentials credentials)
Extracts the id of the user from the provided credentials.
|
boolean |
supports(Credentials credentials)
Return true if Credentials are UsernamePasswordCredentials, false
otherwise.
|
resolvePrincipal, setAttributeRepository, setReturnNullIfNoAttributespublic UsernamePasswordCredentialsToPrincipalResolver()
protected String extractPrincipalId(Credentials credentials)
AbstractPersonDirectoryCredentialsToPrincipalResolverextractPrincipalId in class AbstractPersonDirectoryCredentialsToPrincipalResolvercredentials - the credentials provided by the user.public boolean supports(Credentials credentials)
credentials - The credentials to check if we support.Copyright © 2004-2012 Jasig. All Rights Reserved.