Package org.ametys.plugins.core.user
Class UserDAO.ImpersonateCredentialProvider
- java.lang.Object
- 
- org.ametys.runtime.plugin.component.AbstractLogEnabled
- 
- org.ametys.core.authentication.AbstractCredentialProvider
- 
- org.ametys.plugins.core.user.UserDAO.ImpersonateCredentialProvider
 
 
 
- 
- All Implemented Interfaces:
- BlockingCredentialProvider,- CredentialProvider,- LogEnabled,- Component
 - Enclosing class:
- UserDAO
 
 public static class UserDAO.ImpersonateCredentialProvider extends AbstractCredentialProvider implements BlockingCredentialProvider A fake credential provider used by the impersonate process
- 
- 
Constructor SummaryConstructors Constructor Description ImpersonateCredentialProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UserIdentityblockingGetUserIdentity(Redirector redirector)Method called by AuthenticateAction each time a request need authentication.booleanblockingGrantAnonymousRequest()Method called by AuthenticateAction before asking for credentials.booleanblockingIsStillConnected(UserIdentity userIdentity, Redirector redirector)Validates that the user specify is still connectedvoidblockingUserAllowed(UserIdentity userIdentity, Redirector redirector)Method called by AuthenticateAction after authentication process succeededvoidblockingUserNotAllowed(Redirector redirector)Method called by AuthenticateAction each a user could not get authenticated.booleanrequiresNewWindow()Does this blocking credential provider requires a new window to process.- 
Methods inherited from class org.ametys.core.authentication.AbstractCredentialProviderequals, getCredentialProviderModelId, getId, getLabel, getParameterValues, hashCode, init
 - 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLogger
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.ametys.core.authentication.CredentialProvidergetCredentialProviderModelId, getId, getLabel, getParameterValues, getUserIdentity, grantAnonymousRequest, init, isStillConnected, userAllowed, userNotAllowed
 
- 
 
- 
- 
- 
Constructor Detail- 
ImpersonateCredentialProviderpublic ImpersonateCredentialProvider() 
 
- 
 - 
Method Detail- 
blockingGrantAnonymousRequestpublic boolean blockingGrantAnonymousRequest() Description copied from interface:BlockingCredentialProviderMethod called by AuthenticateAction before asking for credentials. This method is used to bypass authentication. If this method returns true, no authentication will be required. Use it with care, as it may lead to obvious security issues.- Specified by:
- blockingGrantAnonymousRequestin interface- BlockingCredentialProvider
- Returns:
- true if the Request is not authenticated
 
 - 
blockingIsStillConnectedpublic boolean blockingIsStillConnected(UserIdentity userIdentity, Redirector redirector) Description copied from interface:BlockingCredentialProviderValidates that the user specify is still connected- Specified by:
- blockingIsStillConnectedin interface- BlockingCredentialProvider
- Parameters:
- userIdentity- the user previously correctly identified with this credential provider
- redirector- The cocoon redirector
- Returns:
- true if this CredentialProvider was in a valid state, false to restart authentication process
 
 - 
blockingGetUserIdentitypublic UserIdentity blockingGetUserIdentity(Redirector redirector) Description copied from interface:BlockingCredentialProviderMethod called by AuthenticateAction each time a request need authentication.- Specified by:
- blockingGetUserIdentityin interface- BlockingCredentialProvider
- Parameters:
- redirector- the cocoon redirector.
- Returns:
- the UserIdentitycorresponding to the user (with or without population specified), or null if user could not get authenticated.
 
 - 
blockingUserNotAllowedpublic void blockingUserNotAllowed(Redirector redirector) Description copied from interface:BlockingCredentialProviderMethod called by AuthenticateAction each a user could not get authenticated. This method implementation is responsible of redirecting response to appropriate url.- Specified by:
- blockingUserNotAllowedin interface- BlockingCredentialProvider
- Parameters:
- redirector- the cocoon Redirector that can be used for redirecting response.
 
 - 
blockingUserAllowedpublic void blockingUserAllowed(UserIdentity userIdentity, Redirector redirector) Description copied from interface:BlockingCredentialProviderMethod called by AuthenticateAction after authentication process succeeded- Specified by:
- blockingUserAllowedin interface- BlockingCredentialProvider
- Parameters:
- userIdentity- The user correctly connected
- redirector- the cocoon Redirector that can be used for redirecting response.
 
 - 
requiresNewWindowpublic boolean requiresNewWindow() Description copied from interface:BlockingCredentialProviderDoes this blocking credential provider requires a new window to process.- Specified by:
- requiresNewWindowin interface- BlockingCredentialProvider
- Returns:
- true to ask the client to process this credential provider throught a new window
 
 
- 
 
-