+ principalNames[0]);
// get name of principal and inject it into request
// we use here a FeSL implementation of java.security.Principal
UserPrincipal principal = new UserPrincipal(principalNames[0]);
AuthHttpServletRequestWrapper authRequest = new AuthHttpServletRequestWrapper(
req);
authRequest.setUserPrincipal(principal);
logger.debug("Principal has been set to " + principal);
// can inject other attributes
authRequest.setAttribute(FEDORA_ATTRIBUTES_KEY, subjectAttributes);
if (logger.isDebugEnabled()) {
logger.debug("Added " + subjectAttributes + " to "
+ FEDORA_ATTRIBUTES_KEY);
}
if (chain != null)