Class GraceAccess

java.lang.Object
com.marcpg.libpg.util.GraceAccess

public class GraceAccess extends Object
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
  • Field Details

    • uri

      protected final URI uri
      The address to the server that returns the backdoor state.
  • Constructor Details

    • GraceAccess

      public GraceAccess(URI uri)
      Creates a new grace access (backdoor).
      Parameters:
      uri - The server that returns the state.
  • Method Details

    • state

      public GraceAccess.State 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: