com.dyuproject.openid
Class RegexHtmlBasedDiscovery

java.lang.Object
  extended by com.dyuproject.openid.RegexHtmlBasedDiscovery
All Implemented Interfaces:
Discovery

public final class RegexHtmlBasedDiscovery
extends Object
implements Discovery

Same as HtmlBasedDiscvoery but uses regex to search for the openid2.provider, openid.server, openid2.local_id and openid.delegate.

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
RegexHtmlBasedDiscovery()
           
 
Method Summary
 OpenIdUser discover(Identifier identifier, OpenIdContext context)
          Discovers the user's openid server endpoint and local id (optional).
static int getBufferSize()
          Gets the buffer size used by the BufferedReader for parsing.
static void setBufferSize(int bufferSize)
          Sets the buffer size used by the BufferedReader for parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexHtmlBasedDiscovery

public RegexHtmlBasedDiscovery()
Method Detail

setBufferSize

public static void setBufferSize(int bufferSize)
Sets the buffer size used by the BufferedReader for parsing.


getBufferSize

public static int getBufferSize()
Gets the buffer size used by the BufferedReader for parsing.


discover

public 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.