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
Modifier and TypeFieldDescriptionstatic org.apache.logging.log4j.Logger
static final org.pac4j.core.profile.UserProfile
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addUser
(AuthAccount account) static UserProfileManager
create()
createDefaultProfile
(org.pac4j.core.profile.UserProfile up, String tenant) static AuthAccount
getAccount
(String id, org.pac4j.core.profile.UserProfile up) getAccount
(org.pac4j.core.profile.UserProfile up) static UserProfileManager
getUsers()
static boolean
isUserExist
(String user) static void
static void
static void
removeGroup
(String name) static void
removeUser
(String id) static void
updateUser
(AuthAccount account, byte[] pass) static void
updateUser
(AuthAccount account, byte[] pass, String status) 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
-
LOGGER
public static org.apache.logging.log4j.Logger LOGGER -
SYSTEM_PROFILE
public static final org.pac4j.core.profile.UserProfile SYSTEM_PROFILE
-
-
Method Details
-
getUsers
- Throws:
SystemException
-
getTenants
-
getGroups
-
newTenant
- Throws:
Exception
-
newGroup
- Throws:
Exception
-
removeGroup
- Throws:
Exception
-
isUserExist
- Parameters:
user
-- Returns:
- Throws:
SystemException
-
addUser
- Throws:
SystemException
-
updateUser
- Throws:
SystemException
-
updateUser
public static void updateUser(AuthAccount account, byte[] pass, String status) throws SystemException - Throws:
SystemException
-
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
-