Example #1
0
 public FormValidation doCheckAccessId(@QueryParameter String value)
     throws IOException, ServletException {
   if (value.trim().length() != 20) {
     return FormValidation.error(Messages.EC2Cloud_InvalidAccessId());
   }
   return FormValidation.validateBase64(
       value, false, false, Messages.EC2Cloud_InvalidAccessId());
 }
Example #2
0
 public FormValidation doCheckSecretKey(@QueryParameter String value)
     throws IOException, ServletException {
   return FormValidation.validateBase64(
       value, false, false, Messages.EC2Cloud_InvalidSecretKey());
 }