com.dyuproject.openid.ext
Class EmailResolver

java.lang.Object
  extended by com.dyuproject.openid.ext.EmailResolver
All Implemented Interfaces:
Identifier.Resolver

public final class EmailResolver
extends Object
implements Identifier.Resolver

Resolves the url from a given email address.

Author:
David Yu
Date created:
Jan 11, 2009

Field Summary
static String DEFAULT_RESOURCE_LOCATION
          The default resource location.
 
Constructor Summary
EmailResolver()
           
EmailResolver(InputStream resource)
           
EmailResolver(Properties urls)
           
EmailResolver(String resourceLoc)
           
EmailResolver(URL resource)
           
 
Method Summary
 void add(String emailDomain, String url)
          Add the domain of an email (e.g gmail.com) mapped with the given openid server url.
 EmailResolver addDomain(String emailDomain, String url)
          Add the domain of an email (e.g gmail.com) mapped with the given openid server url.
 void resolve(Identifier identifier, OpenIdContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RESOURCE_LOCATION

public static final String DEFAULT_RESOURCE_LOCATION
The default resource location. ("email_resolver.properties")

See Also:
Constant Field Values
Constructor Detail

EmailResolver

public EmailResolver()

EmailResolver

public EmailResolver(String resourceLoc)

EmailResolver

public EmailResolver(URL resource)
              throws IOException
Throws:
IOException

EmailResolver

public EmailResolver(InputStream resource)
              throws IOException
Throws:
IOException

EmailResolver

public EmailResolver(Properties urls)
Method Detail

add

public void add(String emailDomain,
                String url)
Add the domain of an email (e.g gmail.com) mapped with the given openid server url.


addDomain

public EmailResolver addDomain(String emailDomain,
                               String url)
Add the domain of an email (e.g gmail.com) mapped with the given openid server url.


resolve

public void resolve(Identifier identifier,
                    OpenIdContext context)
Specified by:
resolve in interface Identifier.Resolver


Copyright © 2008-2013. All Rights Reserved.