at.gv.egiz.moodle.eidconnector.auth.impl
Class PEPSAuthenticationProvider

java.lang.Object
  extended by at.gv.egiz.moodle.eidconnector.auth.impl.PEPSAuthenticationProvider
All Implemented Interfaces:
AuthenticationProvider
Direct Known Subclasses:
PEPSAuthenticationProviderImpl, TestPEPSAuthenticationProviderImpl

public abstract class PEPSAuthenticationProvider
extends Object
implements AuthenticationProvider


Field Summary
protected static String SAML_RESPONSE_PARAM_NAME
           
 
Constructor Summary
PEPSAuthenticationProvider()
           
 
Method Summary
 SubjectAttributes authenticate(HttpServletRequest request)
          Uses the given request and retrieves/derives credentials from the respective authentication service.
protected abstract  eu.stork.mw.messages.saml.STORKResponse getSTORKResponse(HttpServletRequest request)
           
 boolean isResponsible(HttpServletRequest request)
          Returns true if the underlying authentication implementation claims to be responsible for the given HttpServletRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAML_RESPONSE_PARAM_NAME

protected static final String SAML_RESPONSE_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

PEPSAuthenticationProvider

public PEPSAuthenticationProvider()
Method Detail

getSTORKResponse

protected abstract eu.stork.mw.messages.saml.STORKResponse getSTORKResponse(HttpServletRequest request)
                                                                     throws EIDConnectorException
Throws:
EIDConnectorException

authenticate

public SubjectAttributes authenticate(HttpServletRequest request)
                               throws EIDConnectorException
Description copied from interface: AuthenticationProvider
Uses the given request and retrieves/derives credentials from the respective authentication service.

Specified by:
authenticate in interface AuthenticationProvider
Parameters:
request - The HttpServletRequest.
Returns:
Credentials as SubjectAttributes.
Throws:
EIDConnectorException - Thrown in case of an error.

isResponsible

public boolean isResponsible(HttpServletRequest request)
                      throws EIDConnectorException
Description copied from interface: AuthenticationProvider
Returns true if the underlying authentication implementation claims to be responsible for the given HttpServletRequest.

Specified by:
isResponsible in interface AuthenticationProvider
Parameters:
request - The HttpServletRequest.
Returns:
true if responsible, false if not.
Throws:
EIDConnectorException - Thrown in case of an error.


Copyright 2009 EGIZ. All Rights Reserved.