public void refresh() throws RefreshFailedException {
checkState();
if (!flags[RENEWABLE]) {
throw new RefreshFailedException(Messages.getString("auth.44")); //$NON-NLS-1$
}
if (System.currentTimeMillis() > this.renewTill.getTime()) {
throw new RefreshFailedException(Messages.getString("auth.45")); //$NON-NLS-1$
}
try {
KrbClient.doTGS();
} catch (KerberosException e) {
throw new RefreshFailedException(e.getMessage());
}
}