Package redis.clients.jedis.commands
Interface AccessControlLogCommands
- All Known Subinterfaces:
ControlCommands
- All Known Implementing Classes:
Jedis
public interface AccessControlLogCommands
This class provides the interfaces necessary to interact with
Access Control Lists (ACLs) within redis. These are the interfaces
for string-based (i.e. decoded) interactions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaclCat()Show the available ACL categories.Show the available ACLs for a given category.longaclDelUser(String name) Delete the specified user, from the ACL.longaclDelUser(String name, String... names) Delete the specified users, from the ACL.aclDryRun(String username, CommandArguments commandArgs) Generate a random passwordaclGenPass(int bits) Generate a random passwordaclGetUser(String name) The command returns all the rules defined for an existing ACL user.aclList()Returns the currently active ACL rules on the Redis ServeraclLoad()This function tells Redis to reload its external ACL rules, when Redis is configured with an external ACL fileaclLog()Shows the recent ACL security events.aclLog(int limit) Shows the recent limit ACL security events.Reset the script event logaclSave()Save the currently defined in-memory ACL to disk.aclSetUser(String name) Create an ACL for the specified user with the default rules.aclSetUser(String name, String... keys) Create an ACL for the specified user, while specifying the rules.aclUsers()Shows a list of all usernames currently configured with access control lists (ACL).Returns the username used to authenticate the current connection.
-
Method Details
-
aclWhoAmI
String aclWhoAmI()Returns the username used to authenticate the current connection.- Returns:
- The username used for the current connection
- See Also:
-
aclGenPass
String aclGenPass()Generate a random password- Returns:
- A random password
-
aclGenPass
Generate a random password- Parameters:
bits- the number of output bits- Returns:
- A random password
-
aclList
Returns the currently active ACL rules on the Redis Server- Returns:
- An array of ACL rules
- See Also:
-
aclUsers
Shows a list of all usernames currently configured with access control lists (ACL).- Returns:
- list of users
- See Also:
-
aclGetUser
The command returns all the rules defined for an existing ACL user.- Parameters:
name- username- Returns:
- a list of ACL rule definitions for the user.
-
aclSetUser
Create an ACL for the specified user with the default rules.- Parameters:
name- user who receives an acl- Returns:
- A string containing OK on success
- See Also:
-
aclSetUser
Create an ACL for the specified user, while specifying the rules.- Parameters:
name- user who receives an aclkeys- the acl rules for the specified user- Returns:
- A string containing OK on success
- See Also:
-
aclDelUser
Delete the specified user, from the ACL.- Parameters:
name- The username to delete- Returns:
- The number of users delete
- See Also:
-
aclDelUser
Delete the specified users, from the ACL.- Parameters:
name- The username to deletenames- Other usernames to delete- Returns:
- The number of users delete
- See Also:
-
aclCat
Show the available ACL categories.- Returns:
- the available ACL categories
- See Also:
-
aclCat
Show the available ACLs for a given category.- Parameters:
category- The category for which to list available ACLs- Returns:
- the available ACL categories
- See Also:
-
aclLog
List<AccessControlLogEntry> aclLog()Shows the recent ACL security events.- Returns:
- The list of recent security events
- See Also:
-
aclLog
Shows the recent limit ACL security events.- Parameters:
limit- The number of results to return- Returns:
- The list of recent security events
- See Also:
-
aclLogReset
String aclLogReset()Reset the script event log- Returns:
- The OK string
-
aclLoad
String aclLoad()This function tells Redis to reload its external ACL rules, when Redis is configured with an external ACL file- Returns:
- OK or error text
- See Also:
-
aclSave
String aclSave()Save the currently defined in-memory ACL to disk.- Returns:
- OK on success
- See Also:
-
aclDryRun
-
aclDryRun
-