Package org.openjdk.jmc.common.security
Class PersistentCredentials
java.lang.Object
org.openjdk.jmc.common.security.PersistentCredentials
- All Implemented Interfaces:
ICredentials
ICredentials
stored in the ISecurityManager
. The username and password are lazy
loaded on demand.-
Constructor Summary
ConstructorsConstructorDescriptionPersistentCredentials
(String username, String password) PersistentCredentials
(String username, String password, String family) -
Method Summary
-
Constructor Details
-
PersistentCredentials
-
PersistentCredentials
- Throws:
SecurityException
-
PersistentCredentials
public PersistentCredentials(String username, String password, String family) throws SecurityException - Throws:
SecurityException
-
-
Method Details
-
getUsername
- Specified by:
getUsername
in interfaceICredentials
- Returns:
- the username
- Throws:
SecurityException
-
getPassword
- Specified by:
getPassword
in interfaceICredentials
- Returns:
- the password
- Throws:
SecurityException
-
getExportedId
- Specified by:
getExportedId
in interfaceICredentials
- Returns:
- the id of the exported credentials, or null if the object is not exported.
-
isPasswordValid
-