org.glassfish.internal.api
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
 String getLocalPassword()
          Get the local password.
 boolean isLocalPassword(String password)
          Is the given password the local password?
 

Method Detail

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


Copyright © 2012 GlassFish Community. All Rights Reserved.