com.dyuproject.openid
Class ChainedDiscovery

java.lang.Object
  extended by com.dyuproject.openid.ChainedDiscovery
All Implemented Interfaces:
Discovery
Direct Known Subclasses:
DefaultDiscovery

public class ChainedDiscovery
extends Object
implements Discovery

ChainedDiscovery - chains and delegates the discovery to its wrapped discoveries until an OpenIdUser is successfully discovered.

Author:
David Yu
Date created:
May 26, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.dyuproject.openid.Discovery
Discovery.UserCache
 
Constructor Summary
ChainedDiscovery(Discovery[] discoveries)
           
ChainedDiscovery(List<Discovery> discoveries)
           
 
Method Summary
 OpenIdUser discover(Identifier identifier, OpenIdContext context)
          Discovers the user's openid server endpoint and local id (optional).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedDiscovery

public ChainedDiscovery(Discovery[] discoveries)

ChainedDiscovery

public ChainedDiscovery(List<Discovery> discoveries)
Method Detail

discover

public final OpenIdUser discover(Identifier identifier,
                                 OpenIdContext context)
                          throws Exception
Description copied from interface: Discovery
Discovers the user's openid server endpoint and local id (optional).

Specified by:
discover in interface Discovery
Throws:
Exception


Copyright © 2008-2013. All Rights Reserved.