1 23 24 package com.sun.enterprise.cli.commands; 25 26 import com.sun.enterprise.cli.framework.*; 27 28 36 public class SecurityMapCommand extends GenericCommand 37 { 38 private static final String MAPPED_PASSWORD = "mappedpassword"; 39 40 protected String getOptionName() { 41 return MAPPED_PASSWORD; 42 } 43 44 47 public boolean validateOptions() throws CommandValidationException 48 { 49 super.validateOptions(); 50 51 try {String mappedPassword = getPassword(getOptionName(), true, false, false, false, null, null, false, false, false, true); 52 setOption(getOptionName(), mappedPassword); 53 } 54 catch (CommandException ce) { 55 throw new CommandValidationException(ce.getLocalizedMessage()); 56 } 57 58 return true; 59 } 60 61 } 62 | Popular Tags |