org.surfnet.oaaas.conext
Class SAMLAuthenticator
java.lang.Object
org.surfnet.oaaas.auth.AbstractFilter
org.surfnet.oaaas.auth.AbstractAuthenticator
org.surfnet.oaaas.conext.SAMLAuthenticator
- All Implemented Interfaces:
- javax.servlet.Filter
@Component
public class SAMLAuthenticator
- extends AbstractAuthenticator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAMLAuthenticator
public SAMLAuthenticator()
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.