public interface BlockingCredentialProvider extends CredentialProvider
CredentialProvider
that can be blocking.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.
|
getCredentialProviderModelId, getId, getLabel, getParameterValues, getUserIdentity, grantAnonymousRequest, init, isStillConnected, userAllowed, userNotAllowed
boolean blockingGrantAnonymousRequest()
boolean blockingIsStillConnected(UserIdentity userIdentity, Redirector redirector) throws Exception
userIdentity
- the user previously correctly identified with this credential providerredirector
- The cocoon redirectorException
- If an error occurredUserIdentity blockingGetUserIdentity(Redirector redirector) throws Exception
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 occursvoid blockingUserNotAllowed(Redirector redirector) throws Exception
redirector
- the cocoon Redirector that can be used for redirecting response.Exception
- if something wrong occursvoid blockingUserAllowed(UserIdentity userIdentity)
userIdentity
- The user correctly connectedboolean requiresNewWindow()