-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: M Sazzadul Hoque <[email protected]> Co-authored-by: Guy Korland <[email protected]>
- Loading branch information
1 parent
3289d69
commit 6457908
Showing
31 changed files
with
3,020 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package redis.clients.jedis; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class AccessControlUser { | ||
|
||
private final List<String> flags = new ArrayList<String>(); | ||
private final List<String> keys = new ArrayList<String>(); | ||
private final List<String> passwords = new ArrayList<String>(); | ||
private String commands; | ||
|
||
public AccessControlUser() { | ||
} | ||
|
||
public void addFlag(String flag) { | ||
flags.add(flag); | ||
} | ||
|
||
public List<String> getFlags() { | ||
return flags; | ||
} | ||
|
||
public void addKey(String key) { | ||
keys.add(key); | ||
} | ||
|
||
public List<String> getKeys() { | ||
return keys; | ||
} | ||
|
||
public void addPassword(String password) { | ||
passwords.add(password); | ||
} | ||
|
||
public List<String> getPassword() { | ||
return passwords; | ||
} | ||
|
||
public String getCommands() { | ||
return commands; | ||
} | ||
|
||
public void setCommands(String commands) { | ||
this.commands = commands; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "AccessControlUser{" + "flags=" + flags + ", keys=" + keys + ", passwords=" + passwords | ||
+ ", commands='" + commands + '\'' + '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.