Package com.jgcomptech.tools.authc
Contains classes and methods for authentication for your application.
- Since:
- 1.5.0
-
Interface Summary Interface Description Account Interface used for account objects that combines authentication info and authorization info.AuthenticationInfo Interface used for objects that contain Authentication info. -
Class Summary Class Description AuthManager Manages all tasks related to a user account including sessions and user roles.LoginErrorMessages An object containing all login error messages for the login dialog.Session An object representing a user login session.SessionManager Manages a login sessions to allow a users to login to your application.SessionManagerTest SimpleAuthenticationInfo A simple implementation of the AuthenticationInfo interface.Subject Manages all tasks related to the currently logged in user account.SubjectTest UserAccount An object representing a user account.UserManager Manages all user accounts in the database.UserManagerTest UsernamePasswordToken A simple username/password authentication token to support the most widely-used authentication mechanism.UserRole An object representing a user account role.UserRoleManager Manages all user account roles.UserRoleManagerTest UserRoleTest -
Enum Summary Enum Description UserRoleManager.SystemUserRoles A List of the implemented system user roles. -
Exception Summary Exception Description AccountException Exception thrown due to a problem with the account under which an authentication attempt is being executed.AuthenticationException General exception thrown due to an error during the Authentication process.ConcurrentAccessException Thrown when an authentication attempt has been received for an account that has already been authenticated (i.e.CredentialsException Exception thrown due to a problem with the credential(s) submitted for an account during the authentication process.DisabledAccountException Thrown when attempting to authenticate and the corresponding account has been disabled for some reason.ExcessiveAttemptsException Thrown when a system is configured to only allow a certain number of authentication attempts over a period of time and the current session has failed to authenticate successfully within that number.ExpiredCredentialsException Thrown during the authentication process when the system determines the submitted credential(s) has expired and will not allow login.IncorrectCredentialsException Thrown when attempting to authenticate with credential(s) that do not match the actual credentials associated with the account principal.LockedAccountException A special kind ofDisabledAccountException
, this exception is thrown when attempting to authenticate and the corresponding account has been disabled explicitly due to being locked.PasswordHashingFailedException Thrown to indicate that an exception occurred while hashing a user password.UnauthenticatedException Exception thrown when attempting to execute an authorization action when a successful authentication hasn't yet occurred.UnknownAccountException Thrown when attempting to authenticate with a principal that doesn't exist in the system (e.g.UserManagerException Thrown to indicate that a user manager checked exception was thrown, usually a SQLException.