Class FilePasswordCallback

    • Constructor Detail

      • FilePasswordCallback

        public FilePasswordCallback​(java.lang.String filename)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getPasswordAgain

        public Password getPasswordAgain​(PasswordCallbackInfo info)
                                  throws PasswordCallback.GiveUpException
        Description copied from interface: PasswordCallback
        Tries supplying a password again. This callback will be called if the first callback returned an invalid password. It will be called repeatedly until it returns a correct password, or it gives up by throwing a GiveUpException.
        Specified by:
        getPasswordAgain in interface PasswordCallback
        Parameters:
        info - Information about the token that is being logged into.
        Returns:
        The password. This password object is owned by and will be cleared by the caller.
        Throws:
        PasswordCallback.GiveUpException - If the callback does not want to supply a password. This may often be the case if the first attempt failed.