MCPcopy Create free account
hub / github.com/OWASP/SecurityShepherd / shouldKickUser

Method shouldKickUser

src/main/java/utils/UserKicker.java:33–48  ·  view source on GitHub ↗

Tells you if a user is on the kick list @param userName User to search the list for @return True if the user should be kicked

(String userName)

Source from the content-addressed store, hash-verified

31 * @return True if the user should be kicked
32 */
33 public static boolean shouldKickUser(String userName)
34 {
35 if (!kickTheseUsers.isEmpty())
36 {
37 log.debug("Kick list Is Not Empty! Checking...");
38 boolean kickUser = kickTheseUsers.contains(userName);
39 if (kickUser)
40 log.debug(userName + " is in kick list");
41 return kickUser;
42 }
43 else
44 {
45 //log.debug("Empty Kick List! Skiping...");
46 return false;
47 }
48 }
49
50 /**
51 * Removes a user from the kick list. Should be used after user has been kicked

Callers 2

removeFromKicklistMethod · 0.95
validateSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected