* @throws org.apache.airavata.gfac.GFacException If an error occurred while renewing credentials.
* @throws org.apache.airavata.common.exception.ApplicationSettingsException
*/
public GSSCredential renewCredentialsAsATrustedHost() throws GFacException, ApplicationSettingsException {
MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
GetParams getParams = new GetParams();
getParams.setAuthzCreds(gssCredentials);
getParams.setUserName(getRequestData().getMyProxyUserName());
getParams.setLifetime(getRequestData().getMyProxyLifeTime());
try {
return myproxy.get(gssCredentials, getParams);
} catch (MyProxyException e) {
throw new GFacException("An error occurred while renewing security credentials.", e);
}