org.jboss.security.plugins
Class TmpFilePassword

java.lang.Object
  extended by 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
TmpFilePassword(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(String file)
Method Detail

toCharArray

public char[] toCharArray()
                   throws IOException
Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.