Package org.jboss.security.plugins
Class TmpFilePassword
- java.lang.Object
-
- org.jboss.security.plugins.TmpFilePassword
-
public class TmpFilePassword extends Object
Read a password from a file specified via the ctor and then overwrite the file contents with garbage, and then remove it. This may be used as a password accessor in conjunction with the JaasSecurityDomain {CLASS}org.jboss.security.plugins.TmpFilePassword:password-file format of the KeyStorePass attribute. This class waits until the file exists if it does not when toCharArray() is called. It prints out to the console every 10 seconds the path to the file it is waiting on until the file is created.- Version:
- $Revison:$
- Author:
- Scott.Stark@jboss.org
-
-
Constructor Summary
Constructors Constructor Description TmpFilePassword(String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
toCharArray()
-
-
-
Constructor Detail
-
TmpFilePassword
public TmpFilePassword(String file)
-
-
Method Detail
-
toCharArray
public char[] toCharArray() throws IOException
- Throws:
IOException
-
-