* @param cmd Command line which capture all command line arguments
* @return KeyStoreInformation object
*/
private static IdentityKeyStoreInformation getIdentityKeyStoreInformation(CommandLine cmd) {
IdentityKeyStoreInformation information = new IdentityKeyStoreInformation();
String alias = getArgument(cmd, ALIAS, null);
assertEmpty(alias, ALIAS);
information.setAlias(alias);
String keyStore = getArgument(cmd, KEY_STORE, null);
assertEmpty(keyStore, KEY_STORE);
information.setLocation(keyStore);
information.setStoreType(getArgument(cmd, STORE_TYPE, KeyStoreType.JKS.toString()));
String storePass = getArgument(cmd, STORE_PASS, null);
assertEmpty(storePass, STORE_PASS);
SecretInformation secretInformation = new SecretInformation();
secretInformation.setAliasSecret(storePass);
information.setKeyStorePasswordProvider(secretInformation);
return information;
}