Package com.eka.middleware.auth
Class UserProfileManager
java.lang.Object
com.eka.middleware.auth.UserProfileManager
- All Implemented Interfaces:
io.undertow.security.idm.IdentityManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Users
addUser
(AuthAccount account, String passwordStr) static void
addUserForTenant
(AuthAccount account, DataPipeline dataPipeline) static UserProfileManager
create()
createDefaultProfile
(org.pac4j.core.profile.UserProfile up, String tenant) static void
createGroupForTenant
(String groupName, DataPipeline dataPipeline) static void
static AuthAccount
getAccount
(String id, org.pac4j.core.profile.UserProfile up) static AuthAccount
getAccount
(org.pac4j.core.profile.UserProfile up) Deprecated.getGroupsForTenant
(DataPipeline dataPipeline) static UserProfileManager
getUsers()
Deprecated.static boolean
isUserExist
(String user) static void
static void
static int
static void
removeGroup
(String name) static void
removeGroupForTenant
(String groupName, DataPipeline dataPipeline) static void
removeUser
(String id) static void
updateUser
(AuthAccount account, byte[] pass) static void
updateUser
(AuthAccount account, byte[] pass, DataPipeline dataPipeline) static void
updateUser
(AuthAccount account, byte[] pass, String status) static void
updateUser
(AuthAccount account, byte[] pass, String status, DataPipeline dataPipeline) static void
updateVerificationSecret
(String email, String verification) io.undertow.security.idm.Account
verify
(io.undertow.security.idm.Account account) io.undertow.security.idm.Account
verify
(io.undertow.security.idm.Credential credential)
-
Field Details
-
usersMap
-
LOGGER
public static org.apache.logging.log4j.Logger LOGGER -
SYSTEM_PROFILE
public static final org.pac4j.core.profile.UserProfile SYSTEM_PROFILE
-
-
Method Details
-
getUsers
Deprecated.- Throws:
SystemException
-
getGroups
Deprecated.- Throws:
SystemException
-
getGroupsForTenant
- Throws:
SystemException
-
getTenants
-
newTenant
- Throws:
Exception
-
newGroup
- Throws:
Exception
-
createGroupForTenant
public static void createGroupForTenant(String groupName, DataPipeline dataPipeline) throws Exception - Throws:
Exception
-
removeGroup
- Throws:
Exception
-
removeGroupForTenant
public static void removeGroupForTenant(String groupName, DataPipeline dataPipeline) throws Exception - Throws:
Exception
-
isUserExist
- Throws:
SystemException
-
addUser
- Throws:
SystemException
-
addUserForTenant
public static void addUserForTenant(AuthAccount account, DataPipeline dataPipeline) throws SystemException - Throws:
SystemException
-
updateUser
- Throws:
SystemException
-
updateUser
public static void updateUser(AuthAccount account, byte[] pass, DataPipeline dataPipeline) throws SystemException - Throws:
SystemException
-
updateUser
public static void updateUser(AuthAccount account, byte[] pass, String status, DataPipeline dataPipeline) throws SystemException - Throws:
SystemException
-
updateUser
public static void updateUser(AuthAccount account, byte[] pass, String status) throws SystemException - Throws:
SystemException
-
updateVerificationSecret
- Throws:
Exception
-
removeUser
- Throws:
SystemException
-
create
- Throws:
SystemException
-
getUserProfileManager
-
verify
public io.undertow.security.idm.Account verify(io.undertow.security.idm.Account account) - Specified by:
verify
in interfaceio.undertow.security.idm.IdentityManager
-
verify
- Specified by:
verify
in interfaceio.undertow.security.idm.IdentityManager
-
verify
public io.undertow.security.idm.Account verify(io.undertow.security.idm.Credential credential) - Specified by:
verify
in interfaceio.undertow.security.idm.IdentityManager
-
getAccount
-
getAccount
-
createDefaultProfile
-
migrationProfiles
- Throws:
SystemException
-
createProfileDB
public static void createProfileDB()
-