public interface UserSourceProfile
Modifier and Type | Field and Description |
---|---|
static Property<java.lang.String> |
PWD_EXPIRATION_BYPASS
Bypass flag for auth requests that should not respect the password expiration setting of a user source.
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.lang.String roleName,
UICallback ui) |
void |
addUser(User user,
UICallback ui) |
void |
alterPassword(User user,
java.lang.String oldPassword,
java.lang.String newPassword) |
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.
|
long |
getCacheValidationTimeout()
The cache update time-out option.
|
java.util.Set<UserSourceEditCapability> |
getEditFlags()
Which of the editing functions are supported?
|
java.lang.String |
getName()
The name of this user profile.
|
long |
getProfileId()
The ID of this user profile
|
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 |
shutdown()
Called either when the user source has been edited and so it is being restarted, or when the gateway is shutting
down.
|
void |
startup(UserSourceManager manager)
Called when the user source is created before it is used.
|
default java.lang.String |
validatePassword(User user,
java.lang.String password)
Validate the given password.
|
static final Property<java.lang.String> PWD_EXPIRATION_BYPASS
long getProfileId()
java.lang.String getName()
long getCacheValidationTimeout()
AuthenticatedUser authenticate(AuthChallenge challenge) throws java.lang.Exception
java.lang.Exception
void startup(UserSourceManager manager)
void shutdown()
java.util.Collection<User> getUsers() throws java.lang.Exception
java.lang.Exception
java.util.Collection<java.lang.String> getRoles() throws java.lang.Exception
java.lang.Exception
java.util.Set<UserSourceEditCapability> getEditFlags()
default java.lang.String validatePassword(User user, java.lang.String password)
void addRole(java.lang.String roleName, UICallback ui) throws java.lang.Exception
java.lang.Exception
void removeRole(java.lang.String roleName, UICallback ui) throws java.lang.Exception
java.lang.Exception
void renameRole(java.lang.String oldName, java.lang.String newName, UICallback ui) throws java.lang.Exception
java.lang.Exception
void addUser(User user, UICallback ui) throws java.lang.Exception
java.lang.Exception
void alterUser(User user, UICallback ui) throws java.lang.Exception
java.lang.Exception
void removeUser(User user, UICallback ui) throws java.lang.Exception
java.lang.Exception
void alterPassword(User user, java.lang.String oldPassword, java.lang.String newPassword) throws java.lang.Exception
java.lang.Exception