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, init
getLogger, setLogger
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCredentialProviderModelId, getId, getLabel, getParameterValues, getUserIdentity, grantAnonymousRequest, init, isStillConnected, userAllowed, userNotAllowed
public ImpersonateCredentialProvider()
public boolean blockingGrantAnonymousRequest()
BlockingCredentialProvider
blockingGrantAnonymousRequest
in interface BlockingCredentialProvider
public boolean blockingIsStillConnected(UserIdentity userIdentity, Redirector redirector) throws Exception
BlockingCredentialProvider
blockingIsStillConnected
in interface BlockingCredentialProvider
userIdentity
- the user previously correctly identified with this credential providerredirector
- The cocoon redirectorException
- If an error occurredpublic UserIdentity blockingGetUserIdentity(Redirector redirector) throws Exception
BlockingCredentialProvider
blockingGetUserIdentity
in interface BlockingCredentialProvider
redirector
- 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
BlockingCredentialProvider
blockingUserNotAllowed
in interface BlockingCredentialProvider
redirector
- the cocoon Redirector that can be used for redirecting response.Exception
- if something wrong occurspublic void blockingUserAllowed(UserIdentity userIdentity)
BlockingCredentialProvider
blockingUserAllowed
in interface BlockingCredentialProvider
userIdentity
- The user correctly connectedpublic boolean requiresNewWindow()
BlockingCredentialProvider
requiresNewWindow
in interface BlockingCredentialProvider