/** * @return * the AWS User Token provided by the user. */ public String getAWSUserToken() { return loginCredentialsPanel.getAWSUserToken().trim(); }
/** * @return * the AWS User Token provided by the user. */ public String getAWSUserToken() { return loginCredentialsPanel.getAWSUserToken().trim(); }
/** * Verifies that the user has provided the correct inputs, and returns a list * of error messages if not. * * @return * an empty array if there a no input errors, otherwise the array will contain * a list of error messages. */ public String[] checkForInputErrors() { ArrayList errors = new ArrayList(); if (getAccessKey().trim().length() == 0) { errors.add("Access Key must be provided"); } if (getSecretKey().trim().length() == 0) { errors.add("Secret Key must be provided"); } if (getUsingDevPay()) { if (getAWSUserToken().trim().length() == 0) { errors.add("DevPay User Token must be provided"); } if (getAWSProductToken().trim().length() == 0) { errors.add("DevPay Product Token must be provided"); } } return (String[]) errors.toArray(new String[errors.size()]); }
/** * Verifies that the user has provided the correct inputs, and returns a list * of error messages if not. * * @return * an empty array if there a no input errors, otherwise the array will contain * a list of error messages. */ public String[] checkForInputErrors() { ArrayList errors = new ArrayList(); if (getAccessKey().trim().length() == 0) { errors.add("Access Key must be provided"); } if (getSecretKey().trim().length() == 0) { errors.add("Secret Key must be provided"); } if (getUsingDevPay()) { if (getAWSUserToken().trim().length() == 0) { errors.add("DevPay User Token must be provided"); } if (getAWSProductToken().trim().length() == 0) { errors.add("DevPay Product Token must be provided"); } } return (String[]) errors.toArray(new String[errors.size()]); }
loginCredentialsPanel.getAccessKey(), loginCredentialsPanel.getSecretKey(), loginCredentialsPanel.getAWSUserToken(), loginCredentialsPanel.getAWSProductToken(), loginCredentialsPanel.getFriendlyName());
loginCredentialsPanel.getAccessKey(), loginCredentialsPanel.getSecretKey(), loginCredentialsPanel.getAWSUserToken(), loginCredentialsPanel.getAWSProductToken(), loginCredentialsPanel.getFriendlyName());