Package fr.gouv.vitam.ihmdemo.appserver
Class LoginModel
- java.lang.Object
-
- fr.gouv.vitam.ihmdemo.appserver.LoginModel
-
public class LoginModel extends java.lang.Object
Login Model class
-
-
Constructor Summary
Constructors Constructor Description LoginModel(java.lang.String userName, java.util.List<java.lang.String> permissions, long sessionTimeout, java.lang.String tokenCSRF)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getPermissions()
long
getSessionTimeout()
java.lang.String
getTokenCSRF()
java.lang.String
getUserName()
-
-
-
Constructor Detail
-
LoginModel
public LoginModel(java.lang.String userName, java.util.List<java.lang.String> permissions, long sessionTimeout, java.lang.String tokenCSRF)
Constructor- Parameters:
userName
- the user namepermissions
- list of permissionssessionTimeout
- the session timeout as a longtokenCSRF
- the csrf token
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
- Returns:
- userName
-
getPermissions
public java.util.List<java.lang.String> getPermissions()
- Returns:
- permissions
-
getSessionTimeout
public long getSessionTimeout()
- Returns:
- sessionTimeout
-
getTokenCSRF
public java.lang.String getTokenCSRF()
- Returns:
- tokenCSRF
-
-