org.surfnet.oaaas.conext
Class SAMLAuthenticator

java.lang.Object
  extended by org.surfnet.oaaas.auth.AbstractFilter
      extended by org.surfnet.oaaas.auth.AbstractAuthenticator
          extended by org.surfnet.oaaas.conext.SAMLAuthenticator
All Implemented Interfaces:
javax.servlet.Filter

@Component
public class SAMLAuthenticator
extends AbstractAuthenticator


Field Summary
 
Fields inherited from class org.surfnet.oaaas.auth.AbstractAuthenticator
PRINCIPAL
 
Fields inherited from class org.surfnet.oaaas.auth.AbstractFilter
AUTH_STATE, RETURN_URI
 
Constructor Summary
SAMLAuthenticator()
           
 
Method Summary
 void authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, String authStateValue, String returnUri)
           
 boolean canCommence(javax.servlet.http.HttpServletRequest request)
           
protected  nl.surfnet.coin.api.client.OpenConextOAuthClient createOpenConextOAuthClient(Properties properties)
           
protected  OpenSAMLContext createOpenSAMLContext(Properties properties)
          Default Context factory method.
protected  nl.surfnet.spring.security.opensaml.Provisioner createProvisioner()
          Default Provisioner factory method.
protected  Client getClientByRequest(String authState)
          Get the Client
protected  String getSAMLRelayState(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  boolean isSAMLResponse(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.surfnet.oaaas.auth.AbstractAuthenticator
destroy, doFilter, setPrincipal
 
Methods inherited from class org.surfnet.oaaas.auth.AbstractFilter
getAuthStateValue, getReturnUri, setAuthStateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLAuthenticator

public SAMLAuthenticator()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class AbstractAuthenticator
Throws:
javax.servlet.ServletException

createOpenConextOAuthClient

protected nl.surfnet.coin.api.client.OpenConextOAuthClient createOpenConextOAuthClient(Properties properties)
                                                                                throws ClassNotFoundException,
                                                                                       IllegalAccessException,
                                                                                       InstantiationException,
                                                                                       InvocationTargetException
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException

createOpenSAMLContext

protected OpenSAMLContext createOpenSAMLContext(Properties properties)
Default Context factory method.


createProvisioner

protected nl.surfnet.spring.security.opensaml.Provisioner createProvisioner()
Default Provisioner factory method.


canCommence

public boolean canCommence(javax.servlet.http.HttpServletRequest request)
Specified by:
canCommence in class AbstractAuthenticator

authenticate

public void authenticate(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         javax.servlet.FilterChain chain,
                         String authStateValue,
                         String returnUri)
                  throws IOException,
                         javax.servlet.ServletException
Specified by:
authenticate in class AbstractAuthenticator
Throws:
IOException
javax.servlet.ServletException

getSAMLRelayState

protected String getSAMLRelayState(javax.servlet.http.HttpServletRequest request)

isSAMLResponse

protected boolean isSAMLResponse(javax.servlet.http.HttpServletRequest request)

getClientByRequest

protected Client getClientByRequest(String authState)
Get the Client



Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.