@Override
    public int execute() throws IOException {
      int exitCode = 0;

      try {
        String credential = getCredential();
        if (credential == null) {
          exitCode = 1;
        } else {
          System.out.println(credential);
        }
      } catch (IOException ex) {
        System.out.println("Cannot get the credential for the specified alias."
                + ": " + ex.getMessage());
        throw ex;
      }

      return exitCode;
    }
Executes the get command. Prints the clear text password on the command line.

@return - 0 on success; 1 on failure.
@throws IOException
ambari-server/src/main/java/org/apache/ambari/server/credentialapi/CredentialUtil.java