Package eu.europa.esig.dss.token
Class PrefilledPasswordCallback
java.lang.Object
eu.europa.esig.dss.token.PrefilledPasswordCallback
- All Implemented Interfaces:
PasswordInputCallback
,Destroyable
public class PrefilledPasswordCallback extends Object implements PasswordInputCallback, Destroyable
Class that hold a simple password.
-
Constructor Summary
Constructors Constructor Description PrefilledPasswordCallback(KeyStore.PasswordProtection password)
The default constructor for PrefillPasswordCallback. -
Method Summary
Modifier and Type Method Description void
destroy()
char[]
getPassword()
Retrieve the password (from the user)boolean
isDestroyed()
-
Constructor Details
-
PrefilledPasswordCallback
The default constructor for PrefillPasswordCallback.- Parameters:
password
- the password to use
-
-
Method Details
-
getPassword
public char[] getPassword()Description copied from interface:PasswordInputCallback
Retrieve the password (from the user)- Specified by:
getPassword
in interfacePasswordInputCallback
- Returns:
- the password
-
destroy
- Specified by:
destroy
in interfaceDestroyable
- Throws:
DestroyFailedException
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceDestroyable
-