org.fcrepo.security.http
Class AuthZHttpRequestAttributesFilter

java.lang.Object
  extended by org.fcrepo.security.http.AuthZHttpRequestAttributesFilter
All Implemented Interfaces:
javax.servlet.Filter

public class AuthZHttpRequestAttributesFilter
extends Object
implements javax.servlet.Filter

Author:
ajs6f, cs2@st-andrews.ac.uk

Constructor Summary
AuthZHttpRequestAttributesFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 String getNames()
           
 String getPrincipalHeader()
           
 void init()
           
 void init(javax.servlet.FilterConfig config)
          init initialise filter
 void setNames(String names)
          setNames set the list of attribute names to look for
 void setPrincipalHeader(String principalHeader)
          setPrincipalHeader set the name of the Shibboleth header whgich contains the principal's name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthZHttpRequestAttributesFilter

public AuthZHttpRequestAttributesFilter()
Method Detail

setNames

public void setNames(String names)
setNames set the list of attribute names to look for

Parameters:
names - contains space separated attribute names

setPrincipalHeader

public void setPrincipalHeader(String principalHeader)
setPrincipalHeader set the name of the Shibboleth header whgich contains the principal's name

Parameters:
principalHeader - contains name of header containing principal's name

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
init initialise filter

Specified by:
init in interface javax.servlet.Filter
Parameters:
config - not used
Throws:
javax.servlet.ServletException

init

public void init()
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

getNames

public String getNames()

getPrincipalHeader

public String getPrincipalHeader()


Copyright © 2012 DuraSpace. All Rights Reserved.