com.uwyn.rife.authentication |
Provides classes, interfaces and elements for credentials, authentication sessions and "remember me" management.
Each feature is accessed through dedicated managers.
These have several implementations according to the back-end store (for instance, memory or database).
Related Documentation
For overviews, tutorials, examples, guides, and documentation, please see:
|
Java Source File Name | Type | Comment |
AuthenticationUtils.java | Class | |
Credentials.java | Interface | This interface defines the methods that classes with
Credentials functionalities have to implement.
Credentials contain the information that is required to verify if a user
is valid and known to the system. |
CredentialsManager.java | Interface | This interface defines the methods that classes with
CredentialsManager functionalities have to implement.
A
CredentialsManager is in charge of verifying
Credentials instances. |
ListSessions.java | Interface | This interface to be able to list all the active sessions in a
SessionManager without having to store them all in memory. |
PasswordEncrypting.java | Interface | Credentials managers that can encrypt passwords implement this interface. |
RememberManager.java | Interface | This interface defines the methods that classes with
RememberManager functionalities have to implement.
A
RememberManager is reponsible for coupling a user ID to
an expiring remember ID. |
SessionAttributes.java | Interface | This interface defines the methods that classes with
SessionAttributes functionalities have to implement.
A
SessionAttributes class defines the context in which a session
is being validated. |
SessionManager.java | Interface | This interface defines the methods that classes with
SessionManager functionalities have to implement.
A
SessionManager is reponsible for handling all tasks
related to the lifetime of a session in which a user is successfully
authenticated.
This kind of session doesn't provide any state persistance across
requests and doesn't store any additional business data on the server-side.
It merely provides a unique authentication id which can be used to identify
a successfully authenticated user.
For safety's sake, sessions time out after a certain period of
inactivity and their validity is bound only to a unique user id and a host
ip. |
SessionValidator.java | Interface | This interface defines the methods that classes with
SessionValidator functionalities have to implement.
A
SessionValidator is essentially a bridge between a
CredentialsManager and a
SessionManager . |
SessionValidatorRetriever.java | Class | This abstract class provides the functionalities to retrieve a
com.uwyn.rife.authentication.SessionValidator SessionValidator from a
particular
com.uwyn.rife.authentication.elements.AuthenticatedAuthenticated element in a site.
Since you can have many authentication schemes and backends being active
in a single web application. |
TestAuthenticationUtils.java | Class | |
TestSuiteAuthentication.java | Class | |