public static class UserDAO.ImpersonateCredentialProvider extends AbstractCredentialProvider implements BlockingCredentialProvider
| Constructor and Description | 
|---|
ImpersonateCredentialProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
UserIdentity | 
blockingGetUserIdentity(Redirector redirector)
Method called by AuthenticateAction each time a request need
 authentication. 
 | 
boolean | 
blockingGrantAnonymousRequest()
Method called by AuthenticateAction before asking for credentials. 
 | 
boolean | 
blockingIsStillConnected(UserIdentity userIdentity,
                        Redirector redirector)
Validates that the user specify is still connected 
 | 
void | 
blockingUserAllowed(UserIdentity userIdentity)
Method called by AuthenticateAction after authentication process succeeded 
 | 
void | 
blockingUserNotAllowed(Redirector redirector)
Method called by AuthenticateAction each a user could not get
 authenticated. 
 | 
boolean | 
requiresNewWindow()
Does this blocking credential provider requires a new window to process. 
 | 
equals, getCredentialProviderModelId, getId, getLabel, getParameterValues, hashCode, initgetLogger, setLoggerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCredentialProviderModelId, getId, getLabel, getParameterValues, getUserIdentity, grantAnonymousRequest, init, isStillConnected, userAllowed, userNotAllowedpublic ImpersonateCredentialProvider()
public boolean blockingGrantAnonymousRequest()
BlockingCredentialProviderblockingGrantAnonymousRequest in interface BlockingCredentialProviderpublic boolean blockingIsStillConnected(UserIdentity userIdentity, Redirector redirector) throws Exception
BlockingCredentialProviderblockingIsStillConnected in interface BlockingCredentialProvideruserIdentity - the user previously correctly identified with this credential providerredirector - The cocoon redirectorException - If an error occurredpublic UserIdentity blockingGetUserIdentity(Redirector redirector) throws Exception
BlockingCredentialProviderblockingGetUserIdentity in interface BlockingCredentialProviderredirector - the cocoon redirector.UserIdentity corresponding to the user (with or without population specified), or null if user could not get authenticated.Exception - if something wrong occurspublic void blockingUserNotAllowed(Redirector redirector) throws Exception
BlockingCredentialProviderblockingUserNotAllowed in interface BlockingCredentialProviderredirector - the cocoon Redirector that can be used for redirecting response.Exception - if something wrong occurspublic void blockingUserAllowed(UserIdentity userIdentity)
BlockingCredentialProviderblockingUserAllowed in interface BlockingCredentialProvideruserIdentity - The user correctly connectedpublic boolean requiresNewWindow()
BlockingCredentialProviderrequiresNewWindow in interface BlockingCredentialProvider