PicketLink Federation Server Bindings for Apache Tomcat 7 2.1.6.Final-redhat-2

org.picketlink.identity.federation.bindings.tomcat
Class PicketLinkAuthenticator

java.lang.Object
  extended by org.apache.catalina.util.LifecycleBase
      extended by org.apache.catalina.util.LifecycleMBeanBase
          extended by org.apache.catalina.valves.ValveBase
              extended by org.apache.catalina.authenticator.AuthenticatorBase
                  extended by org.picketlink.identity.federation.bindings.tomcat.AbstractPicketLinkAuthenticator
                      extended by org.picketlink.identity.federation.bindings.tomcat.PicketLinkAuthenticator
All Implemented Interfaces:
MBeanRegistration, org.apache.catalina.Authenticator, org.apache.catalina.Contained, org.apache.catalina.Lifecycle, org.apache.catalina.Valve

public class PicketLinkAuthenticator
extends AbstractPicketLinkAuthenticator

An authenticator that delegates actual authentication to a realm, and in turn to a security manager, by presenting a "conventional" identity. The security manager must accept the conventional identity and generate the real identity for the authenticated principal.

Since:
Apr 11, 2011
Author:
Ovidiu Feodorov, Anil.Saldhana@redhat.com, Pedro Silva

Field Summary
 
Fields inherited from class org.picketlink.identity.federation.bindings.tomcat.AbstractPicketLinkAuthenticator
authMethod, logger, needSubjectPrincipalSubstitution, subjectInteraction, subjectInteractionClassName
 
Fields inherited from class org.apache.catalina.authenticator.AuthenticatorBase
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, info, REALM_NAME, securePagesWithPragma, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionIdGenerator, sm, sso
 
Fields inherited from class org.apache.catalina.valves.ValveBase
asyncSupported, container, containerLog, next
 
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase
mserver
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
PicketLinkAuthenticator()
           
 
Method Summary
 boolean authenticate(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.apache.catalina.deploy.LoginConfig config)
           
protected  void doRegister(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, Principal principal, String password)
           
protected  String getAuthMethod()
           
 
Methods inherited from class org.picketlink.identity.federation.bindings.tomcat.AbstractPicketLinkAuthenticator
getSubjectPrincipal, performAuthentication, setAuthMethod, setNeedSubjectPrincipalSubstitution, setSubjectInteractionClassName
 
Methods inherited from class org.apache.catalina.authenticator.AuthenticatorBase
associate, authenticate, doLogin, getAlwaysUseSession, getCache, getChangeSessionIdOnAuthentication, getContainer, getDisableProxyCaching, getInfo, getSecurePagesWithPragma, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, invoke, login, logout, reauthenticateFromSSO, register, setAlwaysUseSession, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, startInternal, stopInternal
 
Methods inherited from class org.apache.catalina.valves.ValveBase
backgroundProcess, event, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setNext, toString
 
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
 
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PicketLinkAuthenticator

public PicketLinkAuthenticator()
Method Detail

authenticate

public boolean authenticate(org.apache.catalina.connector.Request request,
                            javax.servlet.http.HttpServletResponse response,
                            org.apache.catalina.deploy.LoginConfig config)
                     throws IOException
Specified by:
authenticate in interface org.apache.catalina.Authenticator
Specified by:
authenticate in class org.apache.catalina.authenticator.AuthenticatorBase
Throws:
IOException

doRegister

protected void doRegister(org.apache.catalina.connector.Request request,
                          org.apache.catalina.connector.Response response,
                          Principal principal,
                          String password)
Specified by:
doRegister in class AbstractPicketLinkAuthenticator

getAuthMethod

protected String getAuthMethod()
Specified by:
getAuthMethod in class org.apache.catalina.authenticator.AuthenticatorBase

PicketLink Federation Server Bindings for Apache Tomcat 7 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.