org.fcrepo.server.security.jaas
Class AuthFilterJAAS

java.lang.Object
  extended by org.fcrepo.server.security.jaas.AuthFilterJAAS
All Implemented Interfaces:
javax.servlet.Filter

public class AuthFilterJAAS
extends Object
implements javax.servlet.Filter

A Servlet Filter for protecting resources. This filter uses JAAS for performing user authentication. Once a user is authenticated, a user principal object that is returned from the JAAS login module is created and added to the servlet request. The parameters of this filter are as follows:

Author:
nish.naidoo@gmail.com

Constructor Summary
AuthFilterJAAS()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init()
           
 void init(javax.servlet.FilterConfig config)
           
 void setAuthnAPIA(String a)
           
 void setJaasConfigLocation(String location)
           
 void setJaasConfigName(String name)
           
 void setRoleAttributeNames(String names)
           
 void setRoleClassNames(String names)
           
 void setUserClassNames(String names)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthFilterJAAS

public AuthFilterJAAS()
Method Detail

setUserClassNames

public void setUserClassNames(String names)

setAuthnAPIA

public void setAuthnAPIA(String a)

setJaasConfigLocation

public void setJaasConfigLocation(String location)

setJaasConfigName

public void setJaasConfigName(String name)

setRoleClassNames

public void setRoleClassNames(String names)

setRoleAttributeNames

public void setRoleAttributeNames(String names)

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

init

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

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

destroy

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


Copyright © 2012 DuraSpace. All Rights Reserved.