Interface MenuAuthenticator

All Known Implementing Classes:
PreDefinedAuthenticator, PropertiesAuthenticator

public interface MenuAuthenticator
The authenticator interface that supports the checking of name and UUID pairs. It is used to validate users against the provided name and UUID pair. Optionally, the interface can support adding additional authentication pairs.
  • Method Details

    • authenticate

      boolean authenticate(String user, UUID uuid)
      Check if the user and UUID pair can connect to this board.
      Parameters:
      user - the user to check for
      uuid - the UUID to check for
      Returns:
      true if the user and UUID are allowed, otherwise false
    • addAuthentication

      CompletableFuture<Boolean> addAuthentication(String user, UUID uuid, boolean needsApproval)
      Attempt to add authentication for user and UUID, if it fails to be added false will be returned.
      Parameters:
      user - the user to add
      uuid - the uuid associated with the user
      needsApproval - true if this is being added from a remote connection and needs approval, otherwise false.
      Returns:
      true if added, otherwise false.
    • removeAuthentication

      void removeAuthentication(String user)
      Remove the authentication for the given user
      Parameters:
      user - the user to remove
    • doesPasscodeMatch

      boolean doesPasscodeMatch(String passcode)
      Checks if the provided passcode matches with the security passcode and returns false if it does not match.
      Parameters:
      passcode - the passcode to check
      Returns:
      true if matching, otherwise false
    • managementCapabilities

      Indicates how this authenticator can be edited, some don't support any, some remove only.
      Returns:
      how the authenticator can be managed
    • getAllNames

      List<String> getAllNames()
      Gets a list of all apps/users stored in the system
      Returns:
      the list of users