com.dyuproject.openid.ext
Class EmailResolver
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_RESOURCE_LOCATION
public static final String DEFAULT_RESOURCE_LOCATION
- The default resource location. ("email_resolver.properties")
- See Also:
- Constant Field Values
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)
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.