Class StdProtectHandler
- java.lang.Object
-
- pro.gravit.launchserver.auth.protect.ProtectHandler
-
- pro.gravit.launchserver.auth.protect.StdProtectHandler
-
- All Implemented Interfaces:
ProfilesProtectHandler
- Direct Known Subclasses:
AdvancedProtectHandler
public class StdProtectHandler extends ProtectHandler implements ProfilesProtectHandler
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<java.lang.String>allowUpdatesjava.util.Map<java.lang.String,java.util.List<java.lang.String>>profileWhitelist-
Fields inherited from class pro.gravit.launchserver.auth.protect.ProtectHandler
providers
-
-
Constructor Summary
Constructors Constructor Description StdProtectHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowGetAccessToken(AuthResponse.AuthContext context)booleancanChangeProfile(pro.gravit.launcher.profiles.ClientProfile profile, Client client)booleancanGetProfile(pro.gravit.launcher.profiles.ClientProfile profile, Client client)booleancanGetUpdates(java.lang.String updatesDirName, Client client)voidcheckLaunchServerLicense()booleanisWhitelisted(java.lang.String profileTitle, java.lang.String username)-
Methods inherited from class pro.gravit.launchserver.auth.protect.ProtectHandler
close, init, 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
-
-
-
-
Method Detail
-
allowGetAccessToken
public boolean allowGetAccessToken(AuthResponse.AuthContext context)
- Specified by:
allowGetAccessTokenin classProtectHandler
-
checkLaunchServerLicense
public void checkLaunchServerLicense()
- Specified by:
checkLaunchServerLicensein classProtectHandler
-
canGetProfile
public boolean canGetProfile(pro.gravit.launcher.profiles.ClientProfile profile, Client client)- Specified by:
canGetProfilein interfaceProfilesProtectHandler
-
canChangeProfile
public boolean canChangeProfile(pro.gravit.launcher.profiles.ClientProfile profile, Client client)- Specified by:
canChangeProfilein interfaceProfilesProtectHandler
-
canGetUpdates
public boolean canGetUpdates(java.lang.String updatesDirName, Client client)- Specified by:
canGetUpdatesin interfaceProfilesProtectHandler
-
isWhitelisted
public boolean isWhitelisted(java.lang.String profileTitle, java.lang.String username)
-
-