/* The contents of this file are subject to the license and copyright terms * detailed in the license directory at the root of the source tree (also * available online at http://fedora-commons.org/license/). */ package org.fcrepo.server.security.servletfilters; import java.security.Principal; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; import org.fcrepo.server.errors.authorization.AuthzOperationalException; /** * @author Bill Niebel */ public interface ExtendedHttpServletRequest extends HttpServletRequest { public static final String SUCCEEDED = "succeeded"; public static final String FAILED = "failed"; public static final ImmutableHashSet<Object> IMMUTABLE_NULL_SET = new ImmutableHashSet<Object>(); public void audit(); public void lockWrapper() throws Exception; public void setSponsoredUser() throws Exception; public void lockSponsoredUser() throws Exception; public void setAuthenticated(Principal userPrincipal, String authority) throws Exception; public boolean isUserSponsored(); public boolean isAuthenticated(); public Set<?> getAttributeValues(String key) throws AuthzOperationalException; public boolean hasAttributeValues(String key) throws AuthzOperationalException; public boolean isAttributeDefined(String key) throws AuthzOperationalException; public void addAttributes(String authority, Map<String, Set<?>> namedValues) throws Exception; public String getUser() throws Exception; public String getPassword() throws Exception; public Map<String, Set<?>> getAllAttributes() throws Exception; public String getAuthority(); public String getFromHeader(); }