Package org.glassfish.internal.api
Interface LocalPassword
-
@Contract public interface LocalPasswordManage 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLocalPassword()Get the local password.booleanisLocalPassword(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
-
-