Class AMCallbackHandler
- java.lang.Object
-
- com.sun.identity.security.keystore.AMCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
- Direct Known Subclasses:
AMPassword
public class AMCallbackHandler extends Object implements CallbackHandler
-
-
Constructor Summary
Constructors Constructor Description AMCallbackHandler()AMCallbackHandler(String prompt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the password so that sensitive data is no longer present in memory.protected voidfinalize()The finalizer clears the sensitive information before releasing it to the garbage collector, but it should have been cleared manually before this point anyway.voidhandle(Callback[] callbacks)voidsetPassword(String pw)Set password for key store
-
-
-
Constructor Detail
-
AMCallbackHandler
public AMCallbackHandler()
-
AMCallbackHandler
public AMCallbackHandler(String prompt)
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws UnsupportedCallbackException
- Specified by:
handlein interfaceCallbackHandler- Throws:
UnsupportedCallbackException
-
clear
public void clear()
Clears the password so that sensitive data is no longer present in memory. This should be called as soon as the password is no longer needed.
-
finalize
protected void finalize() throws ThrowableThe finalizer clears the sensitive information before releasing it to the garbage collector, but it should have been cleared manually before this point anyway.
-
setPassword
public void setPassword(String pw)
Set password for key store- Parameters:
pw- Value of string to be set
-
-