Class HWIDHandler
- java.lang.Object
-
- pro.gravit.launchserver.auth.hwid.HWIDHandler
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Reconfigurable
- Direct Known Subclasses:
AcceptHWIDHandler,JsonFileHWIDHandler,JsonHWIDHandler,MemoryHWIDHandler,MysqlHWIDHandler
public abstract class HWIDHandler extends java.lang.Object implements java.lang.AutoCloseable, Reconfigurable
-
-
Field Summary
Fields Modifier and Type Field Description static pro.gravit.utils.ProviderMap<HWIDHandler>providers
-
Constructor Summary
Constructors Constructor Description HWIDHandler()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid)voidcheck(pro.gravit.launcher.hwid.HWID hwid, java.lang.String username)abstract voidcheck0(pro.gravit.launcher.hwid.HWID hwid, java.lang.String username)abstract voidclose()java.util.Map<java.lang.String,pro.gravit.utils.command.Command>getCommands()Gets a list of commands available for this object.abstract java.util.List<pro.gravit.launcher.hwid.HWID>getHwid(java.lang.String username)abstract voidinit()static voidregisterHandlers()abstract voidunban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid)
-
-
-
Field Detail
-
providers
public static final pro.gravit.utils.ProviderMap<HWIDHandler> providers
-
-
Method Detail
-
registerHandlers
public static void registerHandlers()
-
getCommands
public java.util.Map<java.lang.String,pro.gravit.utils.command.Command> getCommands()
Description copied from interface:ReconfigurableGets a list of commands available for this object.- Specified by:
getCommandsin interfaceReconfigurable- Returns:
- Key - Command Name Value is a command object
-
ban
public abstract void ban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid) throws HWIDException- Throws:
HWIDException
-
check
public void check(pro.gravit.launcher.hwid.HWID hwid, java.lang.String username) throws HWIDException- Throws:
HWIDException
-
check0
public abstract void check0(pro.gravit.launcher.hwid.HWID hwid, java.lang.String username) throws HWIDException- Throws:
HWIDException
-
close
public abstract void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
init
public abstract void init()
-
getHwid
public abstract java.util.List<pro.gravit.launcher.hwid.HWID> getHwid(java.lang.String username) throws HWIDException- Throws:
HWIDException
-
unban
public abstract void unban(java.util.List<pro.gravit.launcher.hwid.HWID> hwid) throws HWIDException- Throws:
HWIDException
-
-