* > myproxy-init -A --cert /tmp/x509up_u501 --key /tmp/x509up_u501 -l ogce -s myproxy.teragrid.org
* @return Renewed credentials.
* @throws GFacException If an error occurred while renewing credentials.
*/
public GSSCredential renewCredentialsAsATrustedHost() throws GFacException {
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);
}
}