Package com.illumon.iris.auth
Interface AuthHookModule
- All Known Implementing Classes:
AuthHookModule.Null
public interface AuthHookModule
This interface allows you to run actions after useful authentication server operations; for example you may use an
AuthHookModule to perform post-login refresh of ACL entries.
Implementations must implement a Constructor which takes a
Logger.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidonLogin(UserContext userContext) Called after a client successfully logs in to the authentication server.voidonLogout(UserContext userContext) Called after a client logs out from the authentication server (i.e.voidonReload()Called after the authentication server configuration is reloaded.voidonTokenCreate(UserContext authenticatedContext, String service) Called after an authentication token is created.voidonTokenVerify(UserContext authenticatedContext, String service) Called after an authentication token is verifiedvoidonTokenVerifyFailure(UserContext authenticatedContext, String service) Called after an authentication token fails verification
-
Method Details
-
onLogin
Called after a client successfully logs in to the authentication server.- Parameters:
userContext- the userContext of the login
-
onLogout
Called after a client logs out from the authentication server (i.e. disconnects).- Parameters:
userContext- the userContext of the terminating connection
-
onTokenCreate
Called after an authentication token is created.- Parameters:
authenticatedContext- the context of the user creating the tokenservice- the service the user is creating a token for
-
onTokenVerify
Called after an authentication token is verified- Parameters:
authenticatedContext- the context of the verified tokenservice- the service for which the token is valid
-
onTokenVerifyFailure
Called after an authentication token fails verification- Parameters:
authenticatedContext- the context of the verified tokenservice- the service for which the token is valid
-
onReload
void onReload()Called after the authentication server configuration is reloaded.
-