|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.v3.admin.LocalPasswordImpl
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public class LocalPasswordImpl
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.
| Constructor Summary | |
|---|---|
LocalPasswordImpl()
|
|
| Method Summary | |
|---|---|
String |
getLocalPassword()
Get the local password. |
boolean |
isLocalPassword(String p)
Is the given password the local password? |
void |
postConstruct()
Generate a local password and save it in the local-password file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalPasswordImpl()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.glassfish.hk2.PostConstructpublic boolean isLocalPassword(String p)
isLocalPassword in interface LocalPasswordpublic String getLocalPassword()
getLocalPassword in interface LocalPassword
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||