code: public void verify() throws GlobusCredentialException {
          try {
              String caCertsLocation = "file:" + CoGProperties.getDefault().getCaCertLocations();
              String crlPattern = caCertsLocation + "/*.r*";
              String sigPolPattern = caCertsLocation + "/*.signing_policy";
              KeyStore keyStore = KeyStore.getInstance(GlobusProvider.KEYSTORE_TYPE, GlobusProvider.PROVIDER_NAME);
              CertStore crlStore = CertStore.getInstance(GlobusProvider.CERTSTORE_TYPE, new ResourceCertStoreParameters(null,crlPattern));
              ResourceSigningPolicyStore sigPolStore = new ResourceSigningPolicyStore(new ResourceSigningPolicyStoreParameters(sigPolPattern));
              keyStore.load(KeyStoreParametersFactory.createTrustStoreParameters(caCertsLocation));
              X509ProxyCertPathParameters parameters = new X509ProxyCertPathParameters(keyStore, crlStore, sigPolStore, false);
              X509ProxyCertPathValidator validator = new X509ProxyCertPathValidator();
              validator.engineValidate(CertificateUtil.getCertPath(this.cred.getCertificateChain()), parameters);
          } catch (Exception e) {
          	e.printStackTrace();
              throw new GlobusCredentialException(GlobusCredentialException.FAILURE, e.getMessage(), e);
          }
      }
docs: Verifies the validity of the credentials. All certificate path validation is performed using trusted
  certificates in default locations.
  
  @exception GlobusCredentialException
  if one of the certificates in the chain expired or if path validiation fails.