FileInputStream fis = new FileInputStream(hostcertsKeyFile);
GlobusCredential globusCred = new GlobusCredential(fis);
this.gssCredential = new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
}
} catch (FileNotFoundException e) {
throw new XRegistryClientException(e.getLocalizedMessage(),e);
} catch (GlobusCredentialException e) {
throw new XRegistryClientException(e.getLocalizedMessage(),e);
} catch (GSSException e) {
throw new XRegistryClientException(e.getLocalizedMessage(),e);
}
return gssCredential;
}