public static void main(String[] paramArrayOfString) {
        try {
            MyProxyLogon localMyProxyLogon = new MyProxyLogon();
            String str = null;
            logger.setLevel(Level.ALL);
            System.out
                    .println("Warning: terminal will echo passphrase as you type.");
            System.out.print("MyProxy Passphrase: ");
            str = readLine(System.in);
            if (str == null) {
                System.err.println("Error reading passphrase.");
                System.exit(1);
            }
            localMyProxyLogon.setPassphrase(str);
            localMyProxyLogon.requestTrustRoots(true);
            localMyProxyLogon.getCredentials();
            localMyProxyLogon.writeProxyFile();
            System.out.println("Credential written successfully.");
            X509Certificate[] arrayOfX509Certificate = localMyProxyLogon
                    .getTrustedCAs();
            if (arrayOfX509Certificate != null) {
                System.out.println(Integer
                        .toString(arrayOfX509Certificate.length)
                        + " CA certificates received.");
            }
            X509CRL[] arrayOfX509CRL = localMyProxyLogon.getCRLs();
            if (arrayOfX509CRL != null) {
                System.out.println(Integer.toString(arrayOfX509CRL.length)
                        + " CRLs received.");
            }
            if (localMyProxyLogon.writeTrustRoots()) {
                System.out.println("Wrote trust roots to " + getTrustRootPath()
                        + ".");
            } else {
                System.out
                        .println("Received no trust roots from MyProxy server.");
            }
        } catch (Exception localException) {
            localException.printStackTrace(System.err);
        }
    }