|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.world.AccessControl
Implements various security and access policies for the server.
Field Summary | |
static java.util.HashSet |
elders_
|
static java.util.HashSet |
gods_
|
static java.util.HashSet |
juniors_
|
static java.util.HashSet |
seniors_
|
static java.util.HashSet |
wizards_
|
Constructor Summary | |
AccessControl()
|
Method Summary | |
static boolean |
checkPassword(java.lang.String name,
java.lang.String password)
Validates a player's password. |
static boolean |
isElderWizard(java.lang.String name)
Returns true if the player is an Elder Wizard. |
static boolean |
isGod(java.lang.String name)
Returns true if the player is a God. |
static boolean |
isJuniorWizard(java.lang.String name)
Returns true if the player is a Junior wizard. |
static boolean |
isSeniorWizard(java.lang.String name)
Returns true if the player is Senior Wizard. |
static boolean |
isWizard(java.lang.String name)
Returns true if the player is a (mid-level) Wizard. |
static void |
reset()
Resets all the lists, forcing it to reload the files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.HashSet gods_
public static java.util.HashSet elders_
public static java.util.HashSet seniors_
public static java.util.HashSet wizards_
public static java.util.HashSet juniors_
Constructor Detail |
public AccessControl()
Method Detail |
public static boolean isGod(java.lang.String name)
public static boolean isElderWizard(java.lang.String name)
public static boolean isSeniorWizard(java.lang.String name)
public static boolean isWizard(java.lang.String name)
public static boolean isJuniorWizard(java.lang.String name)
public static boolean checkPassword(java.lang.String name, java.lang.String password)
name
- the player's namepassword
- the (unencrypted) password
public static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |