public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static char[] |
loadPassword(String passwordCmd)
Execute a password load command to obtain the char[] contents of a
password.
|
public static char[] loadPassword(String passwordCmd) throws Exception
passwordCmd
- - A command to execute to obtain the plaintext
password. The format is one of:
'{EXT}...' where the '...' is the exact command
'{EXTC[:expiration_in_millis]}...' where the '...' is the exact command
line that will be passed to the Runtime.exec(String) method to execute a
platform command. The first line of the command output is used as the
password.
EXTC variant will cache the passwords for expiration_in_millis milliseconds.
Default cache expiration is 0 = infinity.
'{CLASS}classname[:ctorargs]' where the '[:ctorargs]' is an optional
string delimited by the ':' from the classname that will be passed to the
classname ctor. The ctorargs itself is a comma delimited list of strings.
The password is obtained from classname by invoking a
'char[] toCharArray()' method if found, otherwise, the 'String toString()'
method is used.Exception
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.