Package io.lettuce.core
Class AclSetuserArgs.Builder
- java.lang.Object
-
- io.lettuce.core.AclSetuserArgs.Builder
-
- Enclosing class:
- AclSetuserArgs
public static class AclSetuserArgs.Builder extends Object
Builder entry points forAclSetuserArgs
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AclSetuserArgs
addCategory(AclCategory category)
Creates newAclSetuserArgs
and adds all the commands in the specified category to the list of commands the user is able to execute.static AclSetuserArgs
addCommand(CommandType command)
Creates newAclSetuserArgs
and adds this command to the list of the commands the user can call.static AclSetuserArgs
addCommand(CommandType command, ProtocolKeyword subCommand)
Creates newAclSetuserArgs
and adds the specified command to the list of the commands the user can execute.static AclSetuserArgs
addHashedPassword(String hashedPassword)
Creates newAclSetuserArgs
and adds the specified hashed password to the list of user passwords.static AclSetuserArgs
addPassword(String password)
Creates newAclSetuserArgs
and adds the specified clear text password as an hashed password in the list of the users passwords.static AclSetuserArgs
allChannels()
Creates newAclSetuserArgs
and allows the user to access all the Pub/Sub channels.static AclSetuserArgs
allCommands()
Creates newAclSetuserArgs
and adds all the commands there are in the server.static AclSetuserArgs
allKeys()
Creates newAclSetuserArgs
and allows the user to access all the keys.static AclSetuserArgs
channelPattern(String channelPattern)
Creates newAclSetuserArgs
and adds accessible channel pattern.static AclSetuserArgs
keyPattern(String keyPattern)
Creates newAclSetuserArgs
and adds accessible key pattern.static AclSetuserArgs
noCommands()
Creates newAclSetuserArgs
and removes all the commands the user can execute.static AclSetuserArgs
nopass()
Creates newAclSetuserArgs
and sets the user as a "no password".static AclSetuserArgs
off()
Creates newAclSetuserArgs
and set user inactive.static AclSetuserArgs
on()
Creates newAclSetuserArgs
and set user active.static AclSetuserArgs
removeCategory(AclCategory category)
Creates newAclSetuserArgs
and removes all the commands in the specified category to the list of commands the user is able to execute.static AclSetuserArgs
removeCommand(CommandType command)
Creates newAclSetuserArgs
and removes this command to the list of the commands the user can call.static AclSetuserArgs
removeCommand(CommandType command, ProtocolKeyword subCommand)
Creates newAclSetuserArgs
and removes the specified command to the list of the commands the user can execute.static AclSetuserArgs
removeHashedPassword(String hashedPassword)
Creates newAclSetuserArgs
and removes the specified hashed password to the list of user passwords.static AclSetuserArgs
removePassword(String password)
Creates newAclSetuserArgs
and removes the specified clear text password as an hashed password in the list of the users passwords.static AclSetuserArgs
reset()
Creates newAclSetuserArgs
and removes any capability from the user.static AclSetuserArgs
resetChannels()
Creates newAclSetuserArgs
and removes all channel patterns from the list of Pub/Sub channel patterns the user can access.static AclSetuserArgs
resetKeys()
Creates newAclSetuserArgs
and removes all the key patterns from the list of key patterns the user can access.static AclSetuserArgs
resetpass()
Creates newAclSetuserArgs
and sets the user as having no associated passwords.
-
-
-
Method Detail
-
on
public static AclSetuserArgs on()
Creates newAclSetuserArgs
and set user active.- Returns:
- new
AclSetuserArgs
and set user active. - See Also:
AclSetuserArgs.on()
-
off
public static AclSetuserArgs off()
Creates newAclSetuserArgs
and set user inactive.- Returns:
- new
AclSetuserArgs
and set user inactive. - See Also:
AclSetuserArgs.off()
-
keyPattern
public static AclSetuserArgs keyPattern(String keyPattern)
Creates newAclSetuserArgs
and adds accessible key pattern.- Parameters:
keyPattern
- accessible key pattern- Returns:
- new
AclSetuserArgs
and adds accessible key pattern. - See Also:
AclSetuserArgs.keyPattern(String)
-
allKeys
public static AclSetuserArgs allKeys()
Creates newAclSetuserArgs
and allows the user to access all the keys.- Returns:
- new
AclSetuserArgs
and allows the user to access all the keys. - See Also:
AclSetuserArgs.allKeys()
-
resetKeys
public static AclSetuserArgs resetKeys()
Creates newAclSetuserArgs
and removes all the key patterns from the list of key patterns the user can access.- Returns:
- new
AclSetuserArgs
and removes all the key patterns from the list of key patterns the user can access. - See Also:
AclSetuserArgs.resetKeys()
-
channelPattern
public static AclSetuserArgs channelPattern(String channelPattern)
Creates newAclSetuserArgs
and adds accessible channel pattern.- Parameters:
channelPattern
- accessible channel pattern- Returns:
- new
AclSetuserArgs
and adds accessible channel pattern. - See Also:
AclSetuserArgs.channelPattern(String)
-
allChannels
public static AclSetuserArgs allChannels()
Creates newAclSetuserArgs
and allows the user to access all the Pub/Sub channels.- Returns:
- new
AclSetuserArgs
and allows the user to access all the Pub/Sub channels. - See Also:
AclSetuserArgs.allChannels()
-
resetChannels
public static AclSetuserArgs resetChannels()
Creates newAclSetuserArgs
and removes all channel patterns from the list of Pub/Sub channel patterns the user can access.- Returns:
- new
AclSetuserArgs
and removes all channel patterns from the list of Pub/Sub channel patterns the user can access. - See Also:
AclSetuserArgs.resetChannels()
-
addCommand
public static AclSetuserArgs addCommand(CommandType command)
Creates newAclSetuserArgs
and adds this command to the list of the commands the user can call.- Parameters:
command
- accessible command- Returns:
- new
AclSetuserArgs
and adds this command to the list of the commands the user can call. - See Also:
AclSetuserArgs.addCommand(CommandType)
-
addCommand
public static AclSetuserArgs addCommand(CommandType command, ProtocolKeyword subCommand)
Creates newAclSetuserArgs
and adds the specified command to the list of the commands the user can execute.- Parameters:
command
- accessible commandsubCommand
- accessible subcommand- Returns:
- new
AclSetuserArgs
and adds the specified command to the list of the commands the user can execute. - See Also:
AclSetuserArgs.addCommand(CommandType, ProtocolKeyword)
-
allCommands
public static AclSetuserArgs allCommands()
Creates newAclSetuserArgs
and adds all the commands there are in the server.- Returns:
- new
AclSetuserArgs
and adds all the commands there are in the server. - See Also:
AclSetuserArgs.allCommands()
-
removeCommand
public static AclSetuserArgs removeCommand(CommandType command)
Creates newAclSetuserArgs
and removes this command to the list of the commands the user can call.- Parameters:
command
- inaccessible command- Returns:
- new
AclSetuserArgs
and removes this command to the list of the commands the user can call. - See Also:
AclSetuserArgs.removeCommand(CommandType)
-
removeCommand
public static AclSetuserArgs removeCommand(CommandType command, ProtocolKeyword subCommand)
Creates newAclSetuserArgs
and removes the specified command to the list of the commands the user can execute.- Parameters:
command
- inaccessible commandsubCommand
- inaccessible subcommand- Returns:
- new
AclSetuserArgs
and removes the specified command to the list of the commands the user can execute. - See Also:
AclSetuserArgs.removeCommand(CommandType, ProtocolKeyword)
-
noCommands
public static AclSetuserArgs noCommands()
Creates newAclSetuserArgs
and removes all the commands the user can execute.- Returns:
- new
AclSetuserArgs
and removes all the commands the user can execute. - See Also:
AclSetuserArgs.noCommands()
-
addCategory
public static AclSetuserArgs addCategory(AclCategory category)
Creates newAclSetuserArgs
and 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
AclSetuserArgs
and 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
public static AclSetuserArgs removeCategory(AclCategory category)
Creates newAclSetuserArgs
and 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
AclSetuserArgs
and 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
public static AclSetuserArgs nopass()
Creates newAclSetuserArgs
and sets the user as a "no password".- Returns:
- new
AclSetuserArgs
and sets the user as a "no password". - See Also:
AclSetuserArgs.nopass()
-
resetpass
public static AclSetuserArgs resetpass()
Creates newAclSetuserArgs
and sets the user as having no associated passwords.- Returns:
- new
AclSetuserArgs
and sets the user as having no associated passwords. - See Also:
AclSetuserArgs.resetpass()
-
addPassword
public static AclSetuserArgs addPassword(String password)
Creates newAclSetuserArgs
and adds the specified clear text password as an hashed password in the list of the users passwords.- Parameters:
password
- clear text password- Returns:
- new
AclSetuserArgs
and adds the specified clear text password as an hashed password in the list of the users passwords. - See Also:
AclSetuserArgs.addPassword(String)
-
addHashedPassword
public static AclSetuserArgs addHashedPassword(String hashedPassword)
Creates newAclSetuserArgs
and adds the specified hashed password to the list of user passwords.- Parameters:
hashedPassword
- hashed password- Returns:
- new
AclSetuserArgs
and adds the specified hashed password to the list of user passwords. - See Also:
AclSetuserArgs.addHashedPassword(String)
-
removePassword
public static AclSetuserArgs removePassword(String password)
Creates newAclSetuserArgs
and removes the specified clear text password as an hashed password in the list of the users passwords.- Parameters:
password
- clear text password- Returns:
- new
AclSetuserArgs
and removes the specified clear text password as an hashed password in the list of the users passwords. - See Also:
AclSetuserArgs.removePassword(String)
-
removeHashedPassword
public static AclSetuserArgs removeHashedPassword(String hashedPassword)
Creates newAclSetuserArgs
and removes the specified hashed password to the list of user passwords.- Parameters:
hashedPassword
- hashed password- Returns:
- new
AclSetuserArgs
and removes the specified hashed password to the list of user passwords. - See Also:
AclSetuserArgs.removeHashedPassword(String)
-
reset
public static AclSetuserArgs reset()
Creates newAclSetuserArgs
and removes any capability from the user.- Returns:
- new
AclSetuserArgs
and removes any capability from the user. - See Also:
AclSetuserArgs.reset()
-
-