Package org.jboss.security.plugins
Class FilePassword
- java.lang.Object
-
- org.jboss.security.plugins.FilePassword
-
public class FilePassword extends Object
Read a password in opaque form to a file for use with the FilePassword accessor in conjunction with the JaasSecurityDomain {CLASS}org.jboss.security.plugins.FilePassword:password-file format of the KeyStorePass attribute. The password file can also be an URL. The original opaque password file can be created by running: java org.jboss.security.plugins.FilePassword salt count password password-file Running java org.jboss.security.plugins.FilePassword will generate a usage message. Note that this is security by obscurity in that the password is not store in plaintext, but it can be recovered by simply using the code from this class.- Version:
- $Revison:$
- Author:
- Scott.Stark@jboss.org
- See Also:
main(String[])
-
-
Constructor Summary
Constructors Constructor Description FilePassword(String file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Write a password in opaque form to a file for use with the FilePassword accessor in conjunction with the JaasSecurityDomain {CLASS}org.jboss.security.plugins.FilePassword:password-file format of the KeyStorePass attribute.char[]
toCharArray()
-
-
-
Constructor Detail
-
FilePassword
public FilePassword(String file)
-
-
Method Detail
-
toCharArray
public char[] toCharArray() throws IOException
- Throws:
IOException
-
main
public static void main(String[] args) throws Exception
Write a password in opaque form to a file for use with the FilePassword accessor in conjunction with the JaasSecurityDomain {CLASS}org.jboss.security.plugins.FilePassword:password-file format of the KeyStorePass attribute.- Parameters:
args
-- Throws:
Exception
-
-