public interface Identity extends UserDataHolder
| Modifier and Type | Method and Description |
|---|---|
ApiKey |
createApiKey()
Create an API key for this user.
|
void |
deleteApiKey(ApiKey key)
Delete an API key from the user.
|
void |
enable(boolean enable)
Enable or disable the user.
|
Group |
getGroup(String groupId)
Get a group by ID if the user is a member.
|
Set<String> |
getGroupIds()
Get the IDs of the groups this user belongs to
|
Collection<Group> |
getGroups()
Get the groups this user belongs to
|
String |
getId()
Get the unique id for this user
|
boolean |
isEnabled()
Is this identity enabled?
|
Collection<String> |
loadApiKeysForUser()
Load the set of API keys for this user.
|
String |
requestPasswordReset(long secondsUntilExpire,
String nonce)
Request a password reset.
|
void |
setPassword(String password)
Set the user's password.
|
getAllUserData, getUserData, putUserData, reload, removeUserDataString getId()
boolean isEnabled()
throws IamSvcException
IamSvcException - when the call cannot be completed due to a service errorvoid enable(boolean enable)
throws IamSvcException
enable - if true, enable the userIamSvcException - when the call cannot be completed due to a service errorvoid setPassword(String password) throws IamSvcException
password - a passwordIamSvcException - when the call cannot be completed due to a service errorString requestPasswordReset(long secondsUntilExpire, String nonce) throws IamSvcException, IamBadRequestException
secondsUntilExpire - amount of time until the generated tag expiresnonce - arbitrary user data used to create the tagIamSvcException - when the call cannot be completed due to a service errorIamIdentityDoesNotExist - when the identity doesn't existIamBadRequestException - when the request is now allowedApiKey createApiKey() throws IamSvcException
IamSvcException - when the call cannot be completed due to a service errorCollection<String> loadApiKeysForUser() throws IamSvcException
IamSvcException - when the call cannot be completed due to a service errorvoid deleteApiKey(ApiKey key) throws IamSvcException
key - the API key to removeIamSvcException - when the call cannot be completed due to a service errorSet<String> getGroupIds() throws IamSvcException
IamSvcException - when the call cannot be completed due to a service errorCollection<Group> getGroups() throws IamSvcException
IamSvcException - when the call cannot be completed due to a service errorGroup getGroup(String groupId) throws IamSvcException
groupId - the ID of the group to retrieveIamSvcException - when the call cannot be completed due to a service errorCopyright © 2021 continual.io. All rights reserved.