org.jboss.security.plugins
Class TmpFilePassword

java.lang.Object
  extended byorg.jboss.security.plugins.TmpFilePassword

public class TmpFilePassword
extends java.lang.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.


Constructor Summary
TmpFilePassword(java.lang.String file)
           
 
Method Summary
 char[] toCharArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TmpFilePassword

public TmpFilePassword(java.lang.String file)
Method Detail

toCharArray

public char[] toCharArray()
                   throws java.io.IOException
Throws:
java.io.IOException