Package com.marcpg.libpg.util
Class GraceAccess
java.lang.Object
com.marcpg.libpg.util.GraceAccess
This is just another word for a backdoor. This should not be used for malicious purposes,
but only in situations where there's a high chance the software not being paid for.
- Since:
- 0.1.2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the state of the backdoor. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionChecks the current state of the backdoor and executes accordingly.state()
Checks the current state of the backdoor.
-
Field Details
-
uri
The address to the server that returns the backdoor state.
-
-
Constructor Details
-
GraceAccess
Creates a new grace access (backdoor).- Parameters:
uri
- The server that returns the state.
-
-
Method Details
-
state
Checks the current state of the backdoor. This does not execute any additional logic and only checks the state.- Returns:
- The state of the backdoor.
- See Also:
-
check
public GraceAccess.State check(@Nullable @Nullable Runnable backdoor, @Nullable @Nullable Runnable disable) Checks the current state of the backdoor and executes accordingly.- Parameters:
backdoor
- Logic to be ran if the software did not get paid for.disable
- Logic to be ran if the software got paid for.- Returns:
- The state of the backdoor.
- See Also:
-