Class JavaScriptTarget
java.lang.Object
com.tremolosecurity.provisioning.core.providers.JavaScriptTarget
- All Implemented Interfaces:
UserStoreProvider, UserStoreProviderWithAddGroup, UserStoreProviderWithMetadata, UserStoreProviderLookups
public class JavaScriptTarget
extends Object
implements UserStoreProviderWithAddGroup, UserStoreProviderWithMetadata, UserStoreProviderLookups
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroup(String name, Map<String, String> additionalAttributes, User user, Map<String, Object> request) voidvoidvoiddeleteUser(User user, Map<String, Object> request) execFunction(String functionName, Object... parameters) voidexecFunctionVoid(String functionName, Object... parameters) voidbooleanbooleanIf true, the group id is the same as the name.booleanIf true, then group members are unique ids, not login ids.booleanIf true, then the tremolo object's ID is the unique id.Lookup a group by its unique id, generally machine generated and not known to the userlookupGroupByName(String groupName) Lookup a group by its descriptive name, generally known by the userlookupUserById(String id) Looks up a user based on their unique id, generally machine generated and not known to the userlookupUserByLogin(String login) Looks up the user by the human known login idsearchGroups(String ldapFilter) Search for groups based on an LDAP filtersearchUsers(String ldapFilter) Search for users based on an LDAP filtervoidsetUserPassword(User user, Map<String, Object> request) voidshutdown()void
-
Constructor Details
-
JavaScriptTarget
public JavaScriptTarget()
-
-
Method Details
-
execFunction
- Throws:
ProvisioningException
-
execFunctionVoid
public void execFunctionVoid(String functionName, Object... parameters) throws ProvisioningException - Throws:
ProvisioningException
-
lookupUserByLogin
Description copied from interface:UserStoreProviderLookupsLooks up the user by the human known login id- Specified by:
lookupUserByLoginin interfaceUserStoreProviderLookups- Parameters:
login-- Returns:
- Throws:
ProvisioningException
-
lookupUserById
Description copied from interface:UserStoreProviderLookupsLooks up a user based on their unique id, generally machine generated and not known to the user- Specified by:
lookupUserByIdin interfaceUserStoreProviderLookups- Parameters:
id-- Returns:
- Throws:
ProvisioningException
-
lookupGroupById
Description copied from interface:UserStoreProviderLookupsLookup a group by its unique id, generally machine generated and not known to the user- Specified by:
lookupGroupByIdin interfaceUserStoreProviderLookups- Parameters:
id-- Returns:
- Throws:
ProvisioningException
-
lookupGroupByName
Description copied from interface:UserStoreProviderLookupsLookup a group by its descriptive name, generally known by the user- Specified by:
lookupGroupByNamein interfaceUserStoreProviderLookups- Parameters:
groupName-- Returns:
- Throws:
ProvisioningException
-
isGroupMembersUniqueIds
public boolean isGroupMembersUniqueIds()Description copied from interface:UserStoreProviderLookupsIf true, then group members are unique ids, not login ids. If false, then the group members have- Specified by:
isGroupMembersUniqueIdsin interfaceUserStoreProviderLookups- Returns:
-
isUniqueIdTremoloId
public boolean isUniqueIdTremoloId()Description copied from interface:UserStoreProviderLookupsIf true, then the tremolo object's ID is the unique id. If not, load it from an attribute- Specified by:
isUniqueIdTremoloIdin interfaceUserStoreProviderLookups- Returns:
-
isGroupIdUniqueId
public boolean isGroupIdUniqueId()Description copied from interface:UserStoreProviderLookupsIf true, the group id is the same as the name. if false, then the group name needs to be looked up by the id.- Specified by:
isGroupIdUniqueIdin interfaceUserStoreProviderLookups- Returns:
-
searchUsers
Description copied from interface:UserStoreProviderLookupsSearch for users based on an LDAP filter- Specified by:
searchUsersin interfaceUserStoreProviderLookups- Parameters:
ldapFilter-- Returns:
- Throws:
ProvisioningException
-
searchGroups
Description copied from interface:UserStoreProviderLookupsSearch for groups based on an LDAP filter- Specified by:
searchGroupsin interfaceUserStoreProviderLookups- Parameters:
ldapFilter-- Returns:
- Throws:
ProvisioningException
-
addGroup
public void addGroup(String name, Map<String, String> additionalAttributes, User user, Map<String, throws ProvisioningExceptionObject> request) - Specified by:
addGroupin interfaceUserStoreProviderWithAddGroup- Throws:
ProvisioningException
-
deleteGroup
public void deleteGroup(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
deleteGroupin interfaceUserStoreProviderWithAddGroup- Throws:
ProvisioningException
-
isGroupExists
public boolean isGroupExists(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
isGroupExistsin interfaceUserStoreProviderWithAddGroup- Throws:
ProvisioningException
-
createUser
public void createUser(User user, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
createUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
setUserPassword
- Specified by:
setUserPasswordin interfaceUserStoreProvider- Throws:
ProvisioningException
-
syncUser
public void syncUser(User user, boolean addOnly, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
syncUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
deleteUser
- Specified by:
deleteUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
findUser
public User findUser(String userID, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
findUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
init
public void init(Map<String, Attribute> cfg, ConfigManager cfgMgr, String name) throws ProvisioningException - Specified by:
initin interfaceUserStoreProvider- Throws:
ProvisioningException
-
shutdown
- Specified by:
shutdownin interfaceUserStoreProvider- Throws:
ProvisioningException
-
getAnnotations
- Specified by:
getAnnotationsin interfaceUserStoreProviderWithMetadata
-
getLabels
- Specified by:
getLabelsin interfaceUserStoreProviderWithMetadata
-