dn = cred.getName().toString();
} catch (GSSException e) {
log.error(e.getMessage(), e);
}
CredentialInfo info = new CredentialInfo(username, dn);
int lifetime = 0;
try {
lifetime = cred.getRemainingLifetime();
} catch (GSSException e) {
log.error(e.getMessage(), e);
}
info.setLifetime(lifetime);
List attribute = getAttributes(cred);
info.setAttribute(attribute);
return info;
}