Package org.minimalj.security
Class RepositoryAuthentication
java.lang.Object
org.minimalj.security.Authentication
org.minimalj.security.UserPasswordAuthentication
org.minimalj.security.RepositoryAuthentication
- All Implemented Interfaces:
java.io.Serializable
,RememberMeAuthentication
public class RepositoryAuthentication extends UserPasswordAuthentication
This Authentication holds user, passwords and roles in the applications
repository. You have to add the User - class to your Application.getEntityClasses
to let the Repository handle the needed classes.
- See Also:
User
, Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.minimalj.security.UserPasswordAuthentication
UserPasswordAuthentication.LoginTransaction, UserPasswordAuthentication.RememberTransaction, UserPasswordAuthentication.UserPasswordAction
Nested classes/interfaces inherited from class org.minimalj.security.Authentication
Authentication.LoginListener
-
Constructor Summary
Constructors Modifier Constructor Description RepositoryAuthentication()
protected
RepositoryAuthentication(Repository authenticationRepository)
-
Method Summary
Modifier and Type Method Description protected Repository
getAuthenticationRepository()
protected User
retrieveUser(java.lang.String userName)
Methods inherited from class org.minimalj.security.UserPasswordAuthentication
login, remember, retrieveUser
Methods inherited from class org.minimalj.security.Authentication
create, createSubject, getUserByToken, logout
-
Constructor Details
-
RepositoryAuthentication
public RepositoryAuthentication() -
RepositoryAuthentication
-
-
Method Details
-
getAuthenticationRepository
-
retrieveUser
- Specified by:
retrieveUser
in classUserPasswordAuthentication
-