com.dyuproject.openid
Class RelyingParty.ListenerCollection

java.lang.Object
  extended by com.dyuproject.openid.RelyingParty.ListenerCollection
All Implemented Interfaces:
RelyingParty.Listener
Enclosing class:
RelyingParty

public static final class RelyingParty.ListenerCollection
extends Object
implements RelyingParty.Listener

A collection of listeners that wraps an array to delegate the methods from the relying party listener.


Constructor Summary
RelyingParty.ListenerCollection()
           
 
Method Summary
 RelyingParty.ListenerCollection addListener(RelyingParty.Listener listener)
          Adds a listener.
 int indexOf(RelyingParty.Listener listener)
          Gets the index of the listener on the wrapped array.
 void onAccess(OpenIdUser user, HttpServletRequest request)
          Callback that gets called everytime an authenticated user accesses protected pages from the relying party's site.
 void onAuthenticate(OpenIdUser user, HttpServletRequest request)
          Callback that gets called when the user has been redirected back to the relying party's site and his authentication has been successfully verified.
 void onDiscovery(OpenIdUser user, HttpServletRequest request)
          Callback that gets called upon successful discovery.
 void onPreAuthenticate(OpenIdUser user, HttpServletRequest request, UrlEncodedParameterMap params)
          Callback that gets called before the user is redirected to this provider for authentication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelyingParty.ListenerCollection

public RelyingParty.ListenerCollection()
Method Detail

addListener

public RelyingParty.ListenerCollection addListener(RelyingParty.Listener listener)
Adds a listener.


indexOf

public int indexOf(RelyingParty.Listener listener)
Gets the index of the listener on the wrapped array.


onDiscovery

public void onDiscovery(OpenIdUser user,
                        HttpServletRequest request)
Description copied from interface: RelyingParty.Listener
Callback that gets called upon successful discovery.

Specified by:
onDiscovery in interface RelyingParty.Listener

onPreAuthenticate

public void onPreAuthenticate(OpenIdUser user,
                              HttpServletRequest request,
                              UrlEncodedParameterMap params)
Description copied from interface: RelyingParty.Listener
Callback that gets called before the user is redirected to this provider for authentication.

Specified by:
onPreAuthenticate in interface RelyingParty.Listener

onAuthenticate

public void onAuthenticate(OpenIdUser user,
                           HttpServletRequest request)
Description copied from interface: RelyingParty.Listener
Callback that gets called when the user has been redirected back to the relying party's site and his authentication has been successfully verified.

Specified by:
onAuthenticate in interface RelyingParty.Listener

onAccess

public void onAccess(OpenIdUser user,
                     HttpServletRequest request)
Description copied from interface: RelyingParty.Listener
Callback that gets called everytime an authenticated user accesses protected pages from the relying party's site. This could be used as a counter for page views.

Specified by:
onAccess in interface RelyingParty.Listener


Copyright © 2008-2013. All Rights Reserved.