java.lang.Object
io.lettuce.core.AclSetuserArgs.Builder
- Enclosing class:
- AclSetuserArgs
public static class AclSetuserArgs.Builder extends Object
Builder entry points for
AclSetuserArgs.-
Method Summary
Modifier and Type Method Description static AclSetuserArgsaddCategory(AclCategory category)Creates newAclSetuserArgsand adds all the commands in the specified category to the list of commands the user is able to execute.static AclSetuserArgsaddCommand(CommandType command)Creates newAclSetuserArgsand adds this command to the list of the commands the user can call.static AclSetuserArgsaddCommand(CommandType command, ProtocolKeyword subCommand)Creates newAclSetuserArgsand adds the specified command to the list of the commands the user can execute.static AclSetuserArgsaddHashedPassword(String hashedPassword)Creates newAclSetuserArgsand adds the specified hashed password to the list of user passwords.static AclSetuserArgsaddPassword(String password)Creates newAclSetuserArgsand adds the specified clear text password as an hashed password in the list of the users passwords.static AclSetuserArgsallChannels()Creates newAclSetuserArgsand allows the user to access all the Pub/Sub channels.static AclSetuserArgsallCommands()Creates newAclSetuserArgsand adds all the commands there are in the server.static AclSetuserArgsallKeys()Creates newAclSetuserArgsand allows the user to access all the keys.static AclSetuserArgschannelPattern(String channelPattern)Creates newAclSetuserArgsand adds accessible channel pattern.static AclSetuserArgskeyPattern(String keyPattern)Creates newAclSetuserArgsand adds accessible key pattern.static AclSetuserArgsnoCommands()Creates newAclSetuserArgsand removes all the commands the user can execute.static AclSetuserArgsnopass()Creates newAclSetuserArgsand sets the user as a "no password".static AclSetuserArgsoff()Creates newAclSetuserArgsand set user inactive.static AclSetuserArgson()Creates newAclSetuserArgsand set user active.static AclSetuserArgsremoveCategory(AclCategory category)Creates newAclSetuserArgsand removes all the commands in the specified category to the list of commands the user is able to execute.static AclSetuserArgsremoveCommand(CommandType command)Creates newAclSetuserArgsand removes this command to the list of the commands the user can call.static AclSetuserArgsremoveCommand(CommandType command, ProtocolKeyword subCommand)Creates newAclSetuserArgsand removes the specified command to the list of the commands the user can execute.static AclSetuserArgsremoveHashedPassword(String hashedPassword)Creates newAclSetuserArgsand removes the specified hashed password to the list of user passwords.static AclSetuserArgsremovePassword(String password)Creates newAclSetuserArgsand removes the specified clear text password as an hashed password in the list of the users passwords.static AclSetuserArgsreset()Creates newAclSetuserArgsand removes any capability from the user.static AclSetuserArgsresetChannels()Creates newAclSetuserArgsand removes all channel patterns from the list of Pub/Sub channel patterns the user can access.static AclSetuserArgsresetKeys()Creates newAclSetuserArgsand removes all the key patterns from the list of key patterns the user can access.
-
Method Details
-
on
Creates newAclSetuserArgsand set user active.- Returns:
- new
AclSetuserArgsand set user active. - See Also:
AclSetuserArgs.on()
-
off
Creates newAclSetuserArgsand set user inactive.- Returns:
- new
AclSetuserArgsand set user inactive. - See Also:
AclSetuserArgs.off()
-
keyPattern
Creates newAclSetuserArgsand adds accessible key pattern.- Parameters:
keyPattern- accessible key pattern- Returns:
- new
AclSetuserArgsand adds accessible key pattern. - See Also:
AclSetuserArgs.keyPattern(String)
-
allKeys
Creates newAclSetuserArgsand allows the user to access all the keys.- Returns:
- new
AclSetuserArgsand allows the user to access all the keys. - See Also:
AclSetuserArgs.allKeys()
-
resetKeys
Creates newAclSetuserArgsand removes all the key patterns from the list of key patterns the user can access.- Returns:
- new
AclSetuserArgsand removes all the key patterns from the list of key patterns the user can access. - See Also:
AclSetuserArgs.resetKeys()
-
channelPattern
Creates newAclSetuserArgsand adds accessible channel pattern.- Parameters:
channelPattern- accessible channel pattern- Returns:
- new
AclSetuserArgsand adds accessible channel pattern. - See Also:
AclSetuserArgs.channelPattern(String)
-
allChannels
Creates newAclSetuserArgsand allows the user to access all the Pub/Sub channels.- Returns:
- new
AclSetuserArgsand allows the user to access all the Pub/Sub channels. - See Also:
AclSetuserArgs.allChannels()
-
resetChannels
Creates newAclSetuserArgsand removes all channel patterns from the list of Pub/Sub channel patterns the user can access.- Returns:
- new
AclSetuserArgsand removes all channel patterns from the list of Pub/Sub channel patterns the user can access. - See Also:
AclSetuserArgs.resetChannels()
-
addCommand
Creates newAclSetuserArgsand adds this command to the list of the commands the user can call.- Parameters:
command- accessible command- Returns:
- new
AclSetuserArgsand adds this command to the list of the commands the user can call. - See Also:
AclSetuserArgs.addCommand(CommandType)
-
addCommand
Creates newAclSetuserArgsand adds the specified command to the list of the commands the user can execute.- Parameters:
command- accessible commandsubCommand- accessible subcommand- Returns:
- new
AclSetuserArgsand adds the specified command to the list of the commands the user can execute. - See Also:
AclSetuserArgs.addCommand(CommandType, ProtocolKeyword)
-
allCommands
Creates newAclSetuserArgsand adds all the commands there are in the server.- Returns:
- new
AclSetuserArgsand adds all the commands there are in the server. - See Also:
AclSetuserArgs.allCommands()
-
removeCommand
Creates newAclSetuserArgsand removes this command to the list of the commands the user can call.- Parameters:
command- inaccessible command- Returns:
- new
AclSetuserArgsand removes this command to the list of the commands the user can call. - See Also:
AclSetuserArgs.removeCommand(CommandType)
-
removeCommand
Creates newAclSetuserArgsand removes the specified command to the list of the commands the user can execute.- Parameters:
command- inaccessible commandsubCommand- inaccessible subcommand- Returns:
- new
AclSetuserArgsand removes the specified command to the list of the commands the user can execute. - See Also:
AclSetuserArgs.removeCommand(CommandType, ProtocolKeyword)
-
noCommands
Creates newAclSetuserArgsand removes all the commands the user can execute.- Returns:
- new
AclSetuserArgsand removes all the commands the user can execute. - See Also:
AclSetuserArgs.noCommands()
-
addCategory
Creates newAclSetuserArgsand adds all the commands in the specified category to the list of commands the user is able to execute.- Parameters:
category- specified category- Returns:
- new
AclSetuserArgsand adds all the commands in the specified category to the list of commands the user is able to execute. - See Also:
AclSetuserArgs.addCategory(AclCategory)
-
removeCategory
Creates newAclSetuserArgsand removes all the commands in the specified category to the list of commands the user is able to execute.- Parameters:
category- specified category- Returns:
- new
AclSetuserArgsand removes all the commands in the specified category to the list of commands the user is able to execute. - See Also:
AclSetuserArgs.removeCategory(AclCategory)
-
nopass
Creates newAclSetuserArgsand sets the user as a "no password".- Returns:
- new
AclSetuserArgsand sets the user as a "no password". - See Also:
AclSetuserArgs.nopass()
-
addPassword
Creates newAclSetuserArgsand adds the specified clear text password as an hashed password in the list of the users passwords.- Parameters:
password- clear text password- Returns:
- new
AclSetuserArgsand adds the specified clear text password as an hashed password in the list of the users passwords. - See Also:
AclSetuserArgs.addPassword(String)
-
addHashedPassword
Creates newAclSetuserArgsand adds the specified hashed password to the list of user passwords.- Parameters:
hashedPassword- hashed password- Returns:
- new
AclSetuserArgsand adds the specified hashed password to the list of user passwords. - See Also:
AclSetuserArgs.addHashedPassword(String)
-
removePassword
Creates newAclSetuserArgsand removes the specified clear text password as an hashed password in the list of the users passwords.- Parameters:
password- clear text password- Returns:
- new
AclSetuserArgsand removes the specified clear text password as an hashed password in the list of the users passwords. - See Also:
AclSetuserArgs.removePassword(String)
-
removeHashedPassword
Creates newAclSetuserArgsand removes the specified hashed password to the list of user passwords.- Parameters:
hashedPassword- hashed password- Returns:
- new
AclSetuserArgsand removes the specified hashed password to the list of user passwords. - See Also:
AclSetuserArgs.removeHashedPassword(String)
-
reset
Creates newAclSetuserArgsand removes any capability from the user.- Returns:
- new
AclSetuserArgsand removes any capability from the user. - See Also:
AclSetuserArgs.reset()
-