}
deleteOldCredentialContext(user, dn);
context.activate(credential);
credentialManager.saveCredentialContext(context);
} catch (GSSException e) {
throw new AuthenticationException(e.getMessage());
} catch (CredentialException e) {
log.error("Couldn't activate", e);
throw new AuthenticationException("Couldn't activate your credential");
}
}