public interface NonBlockingCredentialProvider extends CredentialProvider
CredentialProvider
that can be non-blocking.Modifier and Type | Method and Description |
---|---|
UserIdentity |
nonBlockingGetUserIdentity(Redirector redirector)
Method called by AuthenticateAction each time a request need
authentication.
|
boolean |
nonBlockingGrantAnonymousRequest()
Method called by AuthenticateAction before asking for credentials.
|
boolean |
nonBlockingIsStillConnected(UserIdentity userIdentity,
Redirector redirector)
Validates that the user specify is still connected
|
void |
nonBlockingUserAllowed(UserIdentity userIdentity)
Method called by AuthenticateAction after authentication process succeeded
|
void |
nonBlockingUserNotAllowed(Redirector redirector)
Method called by AuthenticateAction each a user could not get
authenticated.
|
getCredentialProviderModelId, getId, getLabel, getParameterValues, getUserIdentity, grantAnonymousRequest, init, isStillConnected, userAllowed, userNotAllowed
boolean nonBlockingGrantAnonymousRequest()
boolean nonBlockingIsStillConnected(UserIdentity userIdentity, Redirector redirector) throws Exception
userIdentity
- the user previously correctly identified with this credential providerredirector
- The cocoon redirectorException
- If an error occurredUserIdentity nonBlockingGetUserIdentity(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 nonBlockingUserNotAllowed(Redirector redirector) throws Exception
redirector
- the cocoon Redirector that can be used for redirecting response.Exception
- if something wrong occursvoid nonBlockingUserAllowed(UserIdentity userIdentity)
userIdentity
- The user correctly connected