Class com.ibm.ws.security.utility.tasks.CreateLTPAKeysTaskTest

25

tests

0

failures

0

ignored

0.288s

duration

100%

successful

Tests

Test Duration Result
getTaskDescription 0.002s passed
getTaskHelp 0.011s passed
getTaskName 0.007s passed
handleTask_incorrectPasswordFlag 0s passed
handleTask_noPassword 0s passed
handleTask_promptPassword_fileCreated 0.001s passed
handleTask_promptPassword_fileExists 0.001s passed
handleTask_providedPassword_fileCreated 0.032s passed
handleTask_providedPassword_fileExists 0.001s passed
handleTask_specifiedFileAndServer 0s passed
handleTask_specifiedFile_fileCreated 0.002s passed
handleTask_specifiedFile_fileCreated_aes 0.204s passed
handleTask_specifiedFile_fileCreated_aesConfigFile_aes 0.014s passed
handleTask_specifiedFile_fileCreated_base64_aes 0.003s passed
handleTask_specifiedFile_fileCreated_beta_check 0.003s passed
handleTask_specifiedFile_fileExists 0.001s passed
handleTask_specifiedServer_canNotCreatePath 0.001s passed
handleTask_specifiedServer_fileCreated 0.002s passed
handleTask_specifiedServer_fileExists 0.001s passed
handleTask_specifiedServer_serverDoesNotExist 0.001s passed
isKnownArgument_file 0s passed
isKnownArgument_password 0s passed
isKnownArgument_passwordEncoding 0s passed
isKnownArgument_passwordKey 0s passed
isKnownArgument_server 0.001s passed

Standard output

	Create a set of LTPA keys for use by the server, or that can be shared
	with multiple servers. If no server or file is specified, a ltpa.keys
	file will be created in the current working directory.
Usage:
	testUtility createLTPAKeys --password[=pwd] [options]

Description:
	Create a set of LTPA keys for use by the server, or that can be shared
	with multiple servers. If no server or file is specified, a ltpa.keys
	file will be created in the current working directory.

Required:
    --password[=pwd]
	LTPA keys password. If no value is defined you will be prompted.


Options:
    --file=name
	The file in which to write the LTPA keys.
	This argument can not be used if the --server argument is used.

    --passwordEncoding=[xor|aes]
	Specify how to encode the LTPA keys password in the server.xml.
	Supported encodings are xor and aes. The default encoding is xor.
	Use securityUtility encode --listCustom command to see if any
	additional custom encryptions are supported.

    --passwordKey=[key]
	Specify a key to be used when encoding the LTPA keys password using
	AES. This string will be hashed to produce an encryption key which
	will be used to encrypt and decrypt the password. The key can be
	provided to the server by defining the variable
	wlp.password.encryption.key whose value is the key. If this option is
	not provided a default key shall be used.

    --server=name
	Server for which to create the LTPA keys.
	This argument can not used if the --file argument is used.

Usage:
	testUtility createLTPAKeys --password[=pwd] [options]

Description:
	Create a set of LTPA keys for use by the server, or that can be shared
	with multiple servers. If no server or file is specified, a ltpa.keys
	file will be created in the current working directory.

Required:
    --password[=pwd]
	LTPA keys password. If no value is defined you will be prompted.


Options:
    --aesConfigFile=aesConfigFile
	An XML or Java properties file with a variable named 
	wlp.password.encryption.key or wlp.aes.encryption.key with valid
	values respectively. Both variables cannot be specified in the same file.
	If --aesConfigFile is specified then --passwordBase64Key and --passwordKey
	cannot be specified.

    --file=name
	The file in which to write the LTPA keys.
	This argument can not be used if the --server argument is used.

    --passwordEncoding=[xor|aes]
	Specify how to encode the LTPA keys password in the server.xml.
	Supported encodings are xor and aes. The default encoding is xor.
	Use securityUtility encode --listCustom command to see if any
	additional custom encryptions are supported.

    --passwordKey=[key]
	Specify a key to be used when encoding the LTPA keys password using
	AES. This string will be hashed to produce an encryption key which
	will be used to encrypt and decrypt the password. The key can be
	provided to the server by defining the variable
	wlp.password.encryption.key whose value is the key. If this option is
	not provided a default key shall be used.

    --passwordBase64Key=base64Key
	A base64 encoded AES-256 bit key to be used to encrypt and decrypt the
	password. The key can be provided to the server by defining the 
	variable wlp.aes.encryption.key whose value is the key. If 
	--passwordBase64Key is specified then --aesConfigFile and --passwordKey
	cannot be specified.

    --server=name
	Server for which to create the LTPA keys.
	This argument can not used if the --file argument is used.