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