Class JsonFileHWIDHandler
- java.lang.Object
-
- pro.gravit.launchserver.auth.hwid.HWIDHandler
-
- pro.gravit.launchserver.auth.hwid.JsonFileHWIDHandler
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Reconfigurable
public class JsonFileHWIDHandler extends HWIDHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonFileHWIDHandler.Entry
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringbanMessagejava.lang.Stringfilenamejava.util.LinkedList<JsonFileHWIDHandler.Entry>list-
Fields inherited from class pro.gravit.launchserver.auth.hwid.HWIDHandler
providers
-
-
Constructor Summary
Constructors Constructor Description JsonFileHWIDHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid)voidcheck0(pro.gravit.launcher.hwid.HWID hwid, java.lang.String username)voidclose()java.util.List<pro.gravit.launcher.hwid.HWID>getHwid(java.lang.String username)voidinit()voidunban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid)-
Methods inherited from class pro.gravit.launchserver.auth.hwid.HWIDHandler
check, getCommands, registerHandlers
-
-
-
-
Field Detail
-
filename
public final java.lang.String filename
- See Also:
- Constant Field Values
-
list
public transient java.util.LinkedList<JsonFileHWIDHandler.Entry> list
-
banMessage
public final java.lang.String banMessage
- See Also:
- Constant Field Values
-
-
Method Detail
-
ban
public void ban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid)
- Specified by:
banin classHWIDHandler
-
init
public void init()
- Specified by:
initin classHWIDHandler
-
check0
public void check0(pro.gravit.launcher.hwid.HWID hwid, java.lang.String username) throws HWIDException- Specified by:
check0in classHWIDHandler- Throws:
HWIDException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein classHWIDHandler- Throws:
java.lang.Exception
-
getHwid
public java.util.List<pro.gravit.launcher.hwid.HWID> getHwid(java.lang.String username)
- Specified by:
getHwidin classHWIDHandler
-
unban
public void unban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid)
- Specified by:
unbanin classHWIDHandler
-
-