Class 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 Detail

      • FilePassword

        public FilePassword​(String file)
    • Method Detail

      • 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