public class DatabaseAutomaticUserSource extends AbstractUserSourceProfile
cacheValidationTimeout, context, manager, profileId, profileName
PWD_EXPIRATION_BYPASS
Constructor and Description |
---|
DatabaseAutomaticUserSource(GatewayContext context,
long profileId,
java.lang.String name,
long cacheTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.lang.String roleName,
UICallback ui) |
void |
addUser(User user,
UICallback ui) |
void |
alterUser(User user,
UICallback ui) |
AuthenticatedUser |
authenticate(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.
|
void |
removeRole(java.lang.String roleName,
UICallback ui) |
void |
removeUser(User user,
UICallback ui) |
void |
renameRole(java.lang.String oldName,
java.lang.String newName,
UICallback ui) |
void |
setDatabaseId(long databaseId) |
void |
setPrefix(java.lang.String prefix) |
void |
validateTables() |
alterPassword, getCacheValidationTimeout, getName, getProfileId, shutdown, startup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validatePassword
public DatabaseAutomaticUserSource(GatewayContext context, long profileId, java.lang.String name, long cacheTimeout)
public void validateTables()
public AuthenticatedUser authenticate(AuthChallenge challenge) throws java.lang.Exception
UserSourceProfile
java.lang.Exception
public java.util.Collection<User> getUsers() throws java.lang.Exception
UserSourceProfile
java.lang.Exception
public java.util.Collection<java.lang.String> getRoles() throws java.lang.Exception
java.lang.Exception
public java.util.Set<UserSourceEditCapability> getEditFlags()
UserSourceProfile
getEditFlags
in interface UserSourceProfile
getEditFlags
in class AbstractUserSourceProfile
public void addUser(User user, UICallback ui) throws java.lang.Exception
addUser
in interface UserSourceProfile
addUser
in class AbstractUserSourceProfile
java.lang.Exception
public void alterUser(User user, UICallback ui) throws java.lang.Exception
alterUser
in interface UserSourceProfile
alterUser
in class AbstractUserSourceProfile
java.lang.Exception
public void addRole(java.lang.String roleName, UICallback ui) throws java.lang.Exception
addRole
in interface UserSourceProfile
addRole
in class AbstractUserSourceProfile
java.lang.Exception
public void removeRole(java.lang.String roleName, UICallback ui) throws java.lang.Exception
removeRole
in interface UserSourceProfile
removeRole
in class AbstractUserSourceProfile
java.lang.Exception
public void renameRole(java.lang.String oldName, java.lang.String newName, UICallback ui) throws java.lang.Exception
renameRole
in interface UserSourceProfile
renameRole
in class AbstractUserSourceProfile
java.lang.Exception
public void removeUser(User user, UICallback ui) throws java.lang.Exception
removeUser
in interface UserSourceProfile
removeUser
in class AbstractUserSourceProfile
java.lang.Exception
public void setDatabaseId(long databaseId)
public void setPrefix(java.lang.String prefix)