Class AdvancedProtectHandler
- java.lang.Object
-
- pro.gravit.launchserver.auth.protect.ProtectHandler
-
- pro.gravit.launchserver.auth.protect.StdProtectHandler
-
- pro.gravit.launchserver.auth.protect.AdvancedProtectHandler
-
- All Implemented Interfaces:
HardwareProtectHandler,JoinServerProtectHandler,ProfilesProtectHandler,SecureProtectHandler,Reconfigurable
public class AdvancedProtectHandler extends StdProtectHandler implements SecureProtectHandler, HardwareProtectHandler, JoinServerProtectHandler, Reconfigurable
-
-
Field Summary
Fields Modifier and Type Field Description booleanenableHardwareFeatureHWIDProviderprovider-
Fields inherited from class pro.gravit.launchserver.auth.protect.StdProtectHandler
allowUpdates, profileWhitelist
-
Fields inherited from class pro.gravit.launchserver.auth.protect.ProtectHandler
providers
-
-
Constructor Summary
Constructors Constructor Description AdvancedProtectHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowGetAccessToken(AuthResponse.AuthContext context)booleanallowGetSecureLevelInfo(Client client)voidcheckLaunchServerLicense()voidclose()java.util.Map<java.lang.String,pro.gravit.utils.command.Command>getCommands()Gets a list of commands available for this object.voidinit(LaunchServer server)pro.gravit.launcher.events.request.GetSecureLevelInfoRequestEventonGetSecureLevelInfo(pro.gravit.launcher.events.request.GetSecureLevelInfoRequestEvent event)voidonHardwareReport(HardwareReportResponse response, Client client)booleanonJoinServer(java.lang.String serverID, java.lang.String username, Client client)pro.gravit.launcher.events.request.VerifySecureLevelKeyRequestEventonSuccessVerify(Client client)-
Methods inherited from class pro.gravit.launchserver.auth.protect.StdProtectHandler
canChangeProfile, canGetProfile, canGetUpdates, isWhitelisted
-
Methods inherited from class pro.gravit.launchserver.auth.protect.ProtectHandler
registerHandlers
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pro.gravit.launchserver.auth.protect.interfaces.ProfilesProtectHandler
canGetProfiles
-
Methods inherited from interface pro.gravit.launchserver.auth.protect.interfaces.SecureProtectHandler
generateSecureLevelKey, onSecurityReport, verifySecureLevelKey
-
-
-
-
Field Detail
-
enableHardwareFeature
public boolean enableHardwareFeature
-
provider
public HWIDProvider provider
-
-
Method Detail
-
allowGetAccessToken
public boolean allowGetAccessToken(AuthResponse.AuthContext context)
- Overrides:
allowGetAccessTokenin classStdProtectHandler
-
checkLaunchServerLicense
public void checkLaunchServerLicense()
- Overrides:
checkLaunchServerLicensein classStdProtectHandler
-
onGetSecureLevelInfo
public pro.gravit.launcher.events.request.GetSecureLevelInfoRequestEvent onGetSecureLevelInfo(pro.gravit.launcher.events.request.GetSecureLevelInfoRequestEvent event)
- Specified by:
onGetSecureLevelInfoin interfaceSecureProtectHandler
-
allowGetSecureLevelInfo
public boolean allowGetSecureLevelInfo(Client client)
- Specified by:
allowGetSecureLevelInfoin interfaceSecureProtectHandler
-
onHardwareReport
public void onHardwareReport(HardwareReportResponse response, Client client)
- Specified by:
onHardwareReportin interfaceHardwareProtectHandler
-
onSuccessVerify
public pro.gravit.launcher.events.request.VerifySecureLevelKeyRequestEvent onSuccessVerify(Client client)
- Specified by:
onSuccessVerifyin interfaceSecureProtectHandler
-
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
-
onJoinServer
public boolean onJoinServer(java.lang.String serverID, java.lang.String username, Client client)- Specified by:
onJoinServerin interfaceJoinServerProtectHandler
-
init
public void init(LaunchServer server)
- Overrides:
initin classProtectHandler
-
close
public void close()
- Overrides:
closein classProtectHandler
-
-