Class DatabaseAutomaticUserSource
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
-
- com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
-
- com.inductiveautomation.ignition.gateway.authentication.impl.DatabaseAutomaticUserSource
-
- All Implemented Interfaces:
UserSourceProfile,UserSourceProfileKernel
public class DatabaseAutomaticUserSource extends AbstractUserSourceProfile
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
PWD_EXPIRATION_BYPASS
-
-
Constructor Summary
Constructors Constructor Description DatabaseAutomaticUserSource(UserSourceProfileKernel kernel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRole(java.lang.String roleName, UICallback ui)voidaddUser(User user, UICallback ui)voidalterUser(User user, UICallback ui)AuthenticatedUserauthenticate(AuthChallenge challenge)Called to both verify authentication for a given username/password pair, and to find the security roles for that user.java.util.Set<UserSourceEditCapability>getEditFlags()Which of the editing functions are supported?java.util.Collection<java.lang.String>getRoles()java.util.Collection<User>getUsers()Retrieve all users from this profile.voidremoveRole(java.lang.String roleName, UICallback ui)voidremoveUser(User user, UICallback ui)voidrenameRole(java.lang.String oldName, java.lang.String newName, UICallback ui)voidsetDatabaseId(long databaseId)voidsetPrefix(java.lang.String prefix)voidvalidateTables()-
Methods inherited from class com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
alterPassword, getName, getRoles, getUser, getUser, getUsers
-
Methods inherited from class com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
getCacheValidationTimeout, getContext, getManager, getProfileId, getProfileName, isLockedOut, notifyFailedAttempt, shutdown, startup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
getCacheValidationTimeout, getProfileId, shutdown, startup, validatePassword
-
-
-
-
Constructor Detail
-
DatabaseAutomaticUserSource
public DatabaseAutomaticUserSource(UserSourceProfileKernel kernel)
-
-
Method Detail
-
validateTables
public void validateTables()
-
authenticate
@Nullable public AuthenticatedUser authenticate(AuthChallenge challenge) throws java.lang.Exception
Description copied from interface:UserSourceProfileCalled to both verify authentication for a given username/password pair, and to find the security roles for that user.- Returns:
- An AuthenticatedUser that contains the user's roles if authentication succeeded, or null if it did not.
- Throws:
java.lang.Exception
-
getUsers
@Nonnull public java.util.Collection<User> getUsers() throws java.lang.Exception
Description copied from interface:UserSourceProfileRetrieve all users from this profile. This can execute slowly (block) if need be. It will be called periodically by the manager and the results will be cached. Users from failover sources will be returned if hard failover is configured and triggered.- Specified by:
getUsersin interfaceUserSourceProfile- Specified by:
getUsersin classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
getRoles
@Nonnull public java.util.Collection<java.lang.String> getRoles() throws java.lang.Exception- Specified by:
getRolesin interfaceUserSourceProfile- Specified by:
getRolesin classAbstractUserSourceProfile- Returns:
- a collection of all possible role names for this profile. May be empty. Roles from failover sources will be returned if hard failover is configured and triggered.
- Throws:
java.lang.Exception
-
getEditFlags
public java.util.Set<UserSourceEditCapability> getEditFlags()
Description copied from interface:UserSourceProfileWhich of the editing functions are supported?- Specified by:
getEditFlagsin interfaceUserSourceProfile- Overrides:
getEditFlagsin classAbstractUserSourceProfile
-
addUser
public void addUser(User user, UICallback ui) throws java.lang.Exception
- Specified by:
addUserin interfaceUserSourceProfile- Overrides:
addUserin classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
alterUser
public void alterUser(User user, UICallback ui) throws java.lang.Exception
- Specified by:
alterUserin interfaceUserSourceProfile- Overrides:
alterUserin classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
addRole
public void addRole(java.lang.String roleName, UICallback ui) throws java.lang.Exception- Specified by:
addRolein interfaceUserSourceProfile- Overrides:
addRolein classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
removeRole
public void removeRole(java.lang.String roleName, UICallback ui) throws java.lang.Exception- Specified by:
removeRolein interfaceUserSourceProfile- Overrides:
removeRolein classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
renameRole
public void renameRole(java.lang.String oldName, java.lang.String newName, UICallback ui) throws java.lang.Exception- Specified by:
renameRolein interfaceUserSourceProfile- Overrides:
renameRolein classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
removeUser
public void removeUser(User user, UICallback ui) throws java.lang.Exception
- Specified by:
removeUserin interfaceUserSourceProfile- Overrides:
removeUserin classAbstractUserSourceProfile- Throws:
java.lang.Exception
-
setDatabaseId
public void setDatabaseId(long databaseId)
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
-