| Modifier and Type | Method and Description |
|---|---|
AccessDb<G> |
IamService.getAccessDb()
Get the access database
|
AccessManager<G> |
IamServiceManager.getAccessManager()
Get the access manager
|
IdentityDb<I> |
IamService.getIdentityDb()
Get the identity database
|
IdentityManager<I> |
IamServiceManager.getIdentityManager()
Get the identity manager
|
TagManager |
IamServiceManager.getTagManager()
Get the tag manager
|
default void |
IamDb.start() |
| Modifier and Type | Method and Description |
|---|---|
void |
AccessManager.addUserToGroup(String groupId,
String userId)
Add a user to a given group
|
boolean |
AccessControlList.canUser(Identity user,
String op)
Can the given user perform the given operation based on this ACL?
|
boolean |
AccessDb.canUser(String id,
Resource resource,
String operation)
Can the given user perform the requested access?
|
void |
AclChecker.check()
Check the user's access.
|
G |
AccessManager.createGroup(String groupDesc)
Create a group
|
G |
AccessManager.createGroup(String groupId,
String groupDesc)
Create a group with a given group ID
|
AccessControlList |
AccessDb.getAclFor(Resource resource)
load an ACL for a resource
|
Collection<String> |
AccessManager.getAllGroups()
Get all group IDs in this db.
|
Set<String> |
AccessManager.getUsersGroups(String userId)
Find out which groups a user is a member of.
|
Set<String> |
AccessManager.getUsersInGroup(String groupId)
Get the set of user IDs in a particular group.
|
G |
AccessDb.loadGroup(String id)
Get a group by its identifier.
|
void |
AccessManager.removeUserFromGroup(String groupId,
String userId)
Remove a user from a given group
|
| Modifier and Type | Method and Description |
|---|---|
void |
IdentityManager.addAlias(String userId,
String alias)
Add a username/alias for this user.
|
I |
IdentityDb.authenticate(ApiKeyCredential akc)
Authenticate with an API key and signature
|
I |
IdentityDb.authenticate(JwtCredential jwt)
Authenticate with a JWT token
|
I |
IdentityDb.authenticate(UsernamePasswordCredential upc)
Authenticate with a username and password
|
boolean |
IdentityManager.completePasswordReset(String tag,
String newPassword)
Complete a password reset by providing a tag and a new password.
|
I |
IdentityManager.createAnonymousUser()
Create a new anonymous user in the identity manager.
|
ApiKey |
Identity.createApiKey()
Create an API key for this user.
|
String |
IdentityDb.createJwtToken(Identity ii)
Create a JWT token for the given identity.
|
I |
IdentityManager.createUser(String userId)
Create a new user in the identity manager.
|
void |
Identity.deleteApiKey(ApiKey key)
Delete an API key from the user.
|
void |
IdentityManager.deleteUser(String userId)
Delete a user from the identity manager.
|
void |
Identity.enable(boolean enable)
Enable or disable the user.
|
List<String> |
IdentityManager.findUsers(String startingWith)
Find users with a user ID that starts with the given string
|
Collection<String> |
IdentityManager.getAliasesFor(String userId)
Get the aliases for a userId.
|
Map<String,String> |
UserDataHolder.getAllUserData()
Get all of the user data
|
Collection<String> |
IdentityManager.getAllUsers()
Get all user IDs in this db.
|
Group |
Identity.getGroup(String groupId)
Get a group by ID if the user is a member.
|
Set<String> |
Identity.getGroupIds()
Get the IDs of the groups this user belongs to
|
Collection<Group> |
Identity.getGroups()
Get the groups this user belongs to
|
Set<String> |
Group.getMembers()
Get members of the group
|
String |
UserDataHolder.getUserData(String key)
Get a named data value.
|
void |
IdentityDb.invalidateJwtToken(String jwtToken)
Invalidate the given JWT token
|
boolean |
Identity.isEnabled()
Is this identity enabled?
|
boolean |
Group.isMember(String userId)
Is the given user a member of this group?
|
Map<String,I> |
IdentityManager.loadAllUsers()
Load all users in this identity manager.
|
ApiKey |
IdentityManager.loadApiKeyRecord(String apiKey)
Load an API key record based on the API key ID.
|
Collection<String> |
Identity.loadApiKeysForUser()
Load the set of API keys for this user.
|
I |
IdentityManager.loadUser(String userId)
Load a user from the identity manager.
|
I |
IdentityManager.loadUserOrAlias(String userIdOrAlias)
Load a user from the identity manager.
|
void |
UserDataHolder.putUserData(String key,
String val)
Put a named data value.
|
void |
UserDataHolder.reload()
reload this object from the server
|
void |
IdentityManager.removeAlias(String alias)
Remove a username/alias from the database.
|
void |
UserDataHolder.removeUserData(String key)
Remove a named data value.
|
String |
Identity.requestPasswordReset(long secondsUntilExpire,
String nonce)
Request a password reset.
|
void |
IdentityManager.restoreApiKey(ApiKey key)
Restore an API key into the API key store
|
void |
Identity.setPassword(String password)
Set the user's password.
|
boolean |
IdentityManager.userExists(String userId)
Find out if a given user exists.
|
boolean |
IdentityManager.userOrAliasExists(String userIdOrAlias)
Find out if a given user or alias exists.
|
boolean |
JwtValidator.validate(JwtCredential jwt) |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiSourceDb.addAlias(String userId,
String alias) |
void |
MultiSourceDb.addUserToGroup(String groupId,
String userId) |
I |
MultiSourceDb.authenticate(ApiKeyCredential akc) |
I |
MultiSourceDb.authenticate(JwtCredential jwt) |
I |
MultiSourceDb.authenticate(UsernamePasswordCredential upc) |
boolean |
MultiSourceDb.canUser(String id,
Resource resource,
String operation) |
boolean |
MultiSourceDb.completePasswordReset(String tag,
String newPassword) |
I |
MultiSourceDb.createAnonymousUser() |
G |
MultiSourceDb.createGroup(String groupDesc) |
G |
MultiSourceDb.createGroup(String groupId,
String groupDesc) |
String |
MultiSourceDb.createJwtToken(Identity ii) |
String |
MultiSourceDb.createTag(String userId,
String appTagType,
long duration,
TimeUnit durationTimeUnit,
String nonce) |
I |
MultiSourceDb.createUser(String userId) |
void |
MultiSourceDb.deleteUser(String userId) |
List<String> |
MultiSourceDb.findUsers(String startingWith) |
AccessDb<G> |
BasicIamServiceWrapper.getAccessDb() |
AccessManager<G> |
BasicIamServiceWrapper.getAccessManager() |
AccessControlList |
MultiSourceDb.getAclFor(Resource resource) |
Collection<String> |
MultiSourceDb.getAliasesFor(String userId) |
Collection<String> |
MultiSourceDb.getAllGroups() |
Collection<String> |
MultiSourceDb.getAllUsers() |
IdentityDb<I> |
BasicIamServiceWrapper.getIdentityDb() |
IdentityManager<I> |
BasicIamServiceWrapper.getIdentityManager() |
TagManager |
BasicIamServiceWrapper.getTagManager() |
String |
MultiSourceDb.getUserIdForTag(String tag) |
Set<String> |
MultiSourceDb.getUsersGroups(String userId) |
Set<String> |
MultiSourceDb.getUsersInGroup(String groupId) |
void |
MultiSourceDb.invalidateJwtToken(String jwtToken) |
Map<String,I> |
MultiSourceDb.loadAllUsers() |
ApiKey |
MultiSourceDb.loadApiKeyRecord(String apiKey) |
G |
MultiSourceDb.loadGroup(String id) |
I |
MultiSourceDb.loadUser(String userId) |
I |
MultiSourceDb.loadUserOrAlias(String userIdOrAlias) |
void |
MultiSourceDb.removeAlias(String alias) |
void |
MultiSourceDb.removeMatchingTag(String userId,
String appTagType) |
void |
MultiSourceDb.removeUserFromGroup(String groupId,
String userId) |
void |
MultiSourceDb.restoreApiKey(ApiKey key) |
void |
MultiSourceDb.sweepExpiredTags() |
boolean |
MultiSourceDb.userExists(String userId) |
boolean |
MultiSourceDb.userOrAliasExists(String userIdOrAlias) |
| Constructor and Description |
|---|
BasicIamServiceWrapper(ServiceContainer sc,
org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
void |
CommonJsonDb.addAlias(String userId,
String alias) |
void |
CommonJsonGroup.addUser(String userId) |
void |
CommonJsonDb.addUserToGroup(String groupId,
String userId) |
protected boolean |
CommonJsonDb.aliasExists(String userId) |
I |
CommonJsonDb.authenticate(ApiKeyCredential akc) |
I |
CommonJsonDb.authenticate(JwtCredential jwt) |
I |
CommonJsonDb.authenticate(UsernamePasswordCredential upc) |
boolean |
CommonJsonDb.canUser(String id,
Resource resource,
String operation) |
boolean |
CommonJsonDb.completePasswordReset(String tagId,
String newPassword) |
I |
CommonJsonDb.createAnonymousUser() |
ApiKey |
CommonJsonIdentity.createApiKey() |
ApiKey |
CommonJsonDb.createApiKey(String userId) |
G |
CommonJsonDb.createGroup(String groupDesc) |
G |
CommonJsonDb.createGroup(String groupId,
String groupDesc) |
String |
CommonJsonDb.createJwtToken(Identity ii) |
String |
CommonJsonDb.createTag(String userId,
String appTagType,
long duration,
TimeUnit durationTimeUnit,
String nonce) |
I |
CommonJsonDb.createUser(String userId) |
protected abstract void |
CommonJsonDb.deleteAclObject(String id) |
protected abstract void |
CommonJsonDb.deleteAliasObject(String id) |
void |
CommonJsonIdentity.deleteApiKey(ApiKey key) |
protected abstract void |
CommonJsonDb.deleteApiKeyObject(String id) |
protected abstract void |
CommonJsonDb.deleteGroupObject(String id) |
protected abstract void |
CommonJsonDb.deleteTagObject(String id,
String userId,
String appTagType) |
void |
CommonJsonDb.deleteUser(String userId) |
protected abstract void |
CommonJsonDb.deleteUserObject(String id) |
void |
CommonJsonIdentity.enable(boolean enable) |
AccessControlList |
CommonJsonDb.getAclFor(Resource resource) |
Collection<String> |
CommonJsonDb.getAliasesFor(String userId) |
Map<String,String> |
CommonJsonObject.getAllUserData() |
Group |
CommonJsonIdentity.getGroup(String groupId) |
Set<String> |
CommonJsonIdentity.getGroupIds() |
Collection<Group> |
CommonJsonIdentity.getGroups() |
Set<String> |
CommonJsonGroup.getMembers() |
String |
CommonJsonObject.getUserData(String key) |
String |
CommonJsonDb.getUserIdForTag(String tagId) |
Set<String> |
CommonJsonDb.getUsersGroups(String userId) |
Set<String> |
CommonJsonDb.getUsersInGroup(String groupId) |
void |
CommonJsonDb.invalidateJwtToken(String token) |
protected abstract boolean |
CommonJsonDb.isInvalidJwtToken(String token) |
boolean |
CommonJsonGroup.isMember(String userId) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadAclObject(String id) |
protected abstract Collection<String> |
CommonJsonDb.loadAliasesForUser(String userId) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadAliasObject(String id) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadApiKeyObject(String id) |
ApiKey |
CommonJsonDb.loadApiKeyRecord(String apiKey) |
Collection<String> |
CommonJsonIdentity.loadApiKeysForUser() |
protected abstract Collection<String> |
CommonJsonDb.loadApiKeysForUser(String userId) |
G |
CommonJsonDb.loadGroup(String groupId) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadGroupObject(String id) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadTagObject(String id,
boolean expiredOk) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadTagObject(String userId,
String appTagType,
boolean expiredOk) |
I |
CommonJsonDb.loadUser(String userId) |
protected abstract org.json.JSONObject |
CommonJsonDb.loadUserObject(String id) |
I |
CommonJsonDb.loadUserOrAlias(String userIdOrAlias) |
void |
CommonJsonObject.putUserData(String key,
String val) |
void |
CommonJsonIdentity.reload() |
abstract void |
CommonJsonObject.reload() |
void |
CommonJsonGroup.reload() |
void |
CommonJsonDb.removeAlias(String alias) |
void |
CommonJsonDb.removeMatchingTag(String userId,
String appTagType) |
void |
CommonJsonGroup.removeUser(String userId) |
void |
CommonJsonObject.removeUserData(String key) |
void |
CommonJsonDb.removeUserFromGroup(String groupId,
String userId) |
protected void |
CommonJsonObject.removeValue(String name) |
String |
CommonJsonIdentity.requestPasswordReset(long secondsUntilExpire,
String nonce) |
void |
CommonJsonDb.restoreApiKey(ApiKey key)
Restore an API key into the API key store
|
void |
CommonJsonIdentity.setPassword(String password) |
void |
CommonJsonIdentity.setPasswordSaltAndHash(String salt,
String hash) |
protected void |
CommonJsonObject.setValue(String name,
String val) |
protected void |
CommonJsonIdentity.store() |
protected abstract void |
CommonJsonObject.store() |
protected void |
CommonJsonGroup.store() |
protected abstract void |
CommonJsonDb.storeAclObject(String id,
org.json.JSONObject data) |
protected abstract void |
CommonJsonDb.storeAliasObject(String id,
org.json.JSONObject data) |
protected abstract void |
CommonJsonDb.storeApiKeyObject(String id,
org.json.JSONObject data) |
protected abstract void |
CommonJsonDb.storeGroupObject(String id,
org.json.JSONObject data) |
protected abstract void |
CommonJsonDb.storeInvalidJwtToken(String token) |
protected abstract void |
CommonJsonDb.storeTagObject(String id,
String userId,
String appTagType,
org.json.JSONObject data) |
protected abstract void |
CommonJsonDb.storeUserObject(String id,
org.json.JSONObject data) |
boolean |
CommonJsonDb.userExists(String userId) |
boolean |
CommonJsonDb.userOrAliasExists(String userIdOrAlias) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleJwtValidator.validate(JwtCredential jwt) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
JsonDocDb.deleteAclObject(String id) |
protected void |
JsonDocDb.deleteAliasObject(String id) |
protected void |
JsonDocDb.deleteApiKeyObject(String id) |
protected void |
JsonDocDb.deleteGroupObject(String id) |
protected void |
JsonDocDb.deleteTagObject(String id,
String userId,
String appTagType) |
protected void |
JsonDocDb.deleteUserObject(String id) |
List<String> |
JsonDocDb.findUsers(String startingWith) |
Collection<String> |
JsonDocDb.getAllGroups() |
Collection<String> |
JsonDocDb.getAllUsers() |
protected boolean |
JsonDocDb.isInvalidJwtToken(String token) |
protected org.json.JSONObject |
JsonDocDb.loadAclObject(String id) |
protected Collection<String> |
JsonDocDb.loadAliasesForUser(String userId) |
protected org.json.JSONObject |
JsonDocDb.loadAliasObject(String id) |
Map<String,CommonJsonIdentity> |
JsonDocDb.loadAllUsers() |
protected org.json.JSONObject |
JsonDocDb.loadApiKeyObject(String id) |
protected Collection<String> |
JsonDocDb.loadApiKeysForUser(String userId) |
protected org.json.JSONObject |
JsonDocDb.loadGroupObject(String id) |
protected org.json.JSONObject |
JsonDocDb.loadTagObject(String id,
boolean expiredOk) |
protected org.json.JSONObject |
JsonDocDb.loadTagObject(String userId,
String appTagType,
boolean expiredOk) |
protected org.json.JSONObject |
JsonDocDb.loadUserObject(String id) |
protected void |
JsonDocDb.storeAclObject(String id,
org.json.JSONObject data) |
protected void |
JsonDocDb.storeAliasObject(String apiKeyId,
org.json.JSONObject data) |
protected void |
JsonDocDb.storeApiKeyObject(String apiKeyId,
org.json.JSONObject data) |
protected void |
JsonDocDb.storeGroupObject(String id,
org.json.JSONObject data) |
protected void |
JsonDocDb.storeInvalidJwtToken(String token) |
protected void |
JsonDocDb.storeTagObject(String id,
String userId,
String appTagType,
org.json.JSONObject data) |
protected void |
JsonDocDb.storeUserObject(String id,
org.json.JSONObject data) |
void |
JsonDocDb.sweepExpiredTags() |
| Modifier and Type | Method and Description |
|---|---|
String |
TagManager.createTag(String userId,
String appTagType,
long duration,
TimeUnit durationTimeUnit,
String nonce)
Create a tag for a given user id with a particular type and duration.
|
String |
TagManager.getUserIdForTag(String tag)
Retrieves the userId associated with a tag.
|
void |
TagManager.removeMatchingTag(String userId,
String appTagType)
Remove any matching tag for the given user and type.
|
void |
TagManager.sweepExpiredTags()
Sweep any expired tags.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract IamDb<I,G> |
IamDbTool.createDb(Vector<String> args,
PrintStream outTo) |
Copyright © 2022 continual.io. All rights reserved.