Interface LocalPassword


@Contract public interface LocalPassword
Manage a local password, which is a cryptographically secure random number stored in a file with permissions that only allow the owner to read it. A new local password is generated each time the server starts. The asadmin client can use it to authenticate when executing local commands, such as stop-domain, without the user needing to supply a password.
Author:
Bill Shannon
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the local password.
    boolean
    Is the given password the local password?
  • Method Details

    • isLocalPassword

      boolean isLocalPassword(String password)
      Is the given password the local password?
      Parameters:
      password - the password to test
      Returns:
      true if it is a local password, false otherwise
    • getLocalPassword

      String getLocalPassword()
      Get the local password.
      Returns:
      the local password