Class WebEditorKeystore

java.lang.Object
me.lucko.luckperms.common.webeditor.store.WebEditorKeystore

public final class WebEditorKeystore extends Object
  • Constructor Details

    • WebEditorKeystore

      public WebEditorKeystore(Path consoleKeysPath)
  • Method Details

    • isTrusted

      public boolean isTrusted(Sender sender, byte[] publicKey)
      Checks if the given public key has been trusted by the sender.
      Parameters:
      sender - the sender
      publicKey - the public key
      Returns:
      true if trusted
    • isTrusted

      public boolean isTrusted(Sender sender, String hash)
      Checks if the given public key hash has been trusted by the sender.
      Parameters:
      sender - the sender
      hash - the public key hash
      Returns:
      true if trusted
    • trust

      public void trust(Sender sender, byte[] publicKey)
      Trusts the given public key for the sender.
      Parameters:
      sender - the sender
      publicKey - the public key
    • trust

      public void trust(Sender sender, String hash)
      Trusts the given public key hash for the sender.
      Parameters:
      sender - the sender
      hash - the public key hash