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.
-
-
-
Constructor Detail
-
PrefilledPasswordCallback
public PrefilledPasswordCallback(KeyStore.PasswordProtection password)
The default constructor for PrefillPasswordCallback.- Parameters:
password- the password to use
-
-
Method Detail
-
getPassword
public char[] getPassword()
Description copied from interface:PasswordInputCallbackRetrieve the password (from the user)- Specified by:
getPasswordin interfacePasswordInputCallback- Returns:
- the password
-
destroy
public void destroy() throws DestroyFailedException- Specified by:
destroyin interfaceDestroyable- Throws:
DestroyFailedException
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfaceDestroyable
-
-