org.expressme.openid
Class OpenIdManager

java.lang.Object
  extended by org.expressme.openid.OpenIdManager

public class OpenIdManager
extends java.lang.Object

Open ID Manager for all open id operation.

Author:
Michael Liao (askxuefeng@gmail.com), Erwin Quinto (erwin.quinto@gmail.com)

Constructor Summary
OpenIdManager()
           
 
Method Summary
 Authentication getAuthentication(javax.servlet.http.HttpServletRequest request, byte[] key)
          Deprecated. Using getAuthentication(HttpServletRequest request, byte[] key, String alias) instead.
 Authentication getAuthentication(javax.servlet.http.HttpServletRequest request, byte[] key, java.lang.String alias)
          Get authentication information from HTTP request, key.and alias
 java.lang.String getAuthenticationUrl(Endpoint endpoint, Association association)
           
 Association lookupAssociation(Endpoint endpoint)
           
 Endpoint lookupEndpoint(java.lang.String nameOrUrl)
          Lookup end point by name or full URL.
 void setRealm(java.lang.String realm)
          Set realm.
 void setReturnTo(java.lang.String returnTo)
          Set returning address after authentication.
 void setTimeOut(int timeOutInMilliseconds)
          Set timeout in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIdManager

public OpenIdManager()
Method Detail

setReturnTo

public void setReturnTo(java.lang.String returnTo)
Set returning address after authentication.

Parameters:
returnTo - URL that should redirect to.

setRealm

public void setRealm(java.lang.String realm)
Set realm. For example, "http://*.example.com".

Parameters:
realm - Realm of RP.

setTimeOut

public void setTimeOut(int timeOutInMilliseconds)
Set timeout in milliseconds.


getAuthentication

public Authentication getAuthentication(javax.servlet.http.HttpServletRequest request,
                                        byte[] key)
Deprecated. Using getAuthentication(HttpServletRequest request, byte[] key, String alias) instead.

Get authentication information from HTTP request and key.


getAuthentication

public Authentication getAuthentication(javax.servlet.http.HttpServletRequest request,
                                        byte[] key,
                                        java.lang.String alias)
Get authentication information from HTTP request, key.and alias


lookupEndpoint

public Endpoint lookupEndpoint(java.lang.String nameOrUrl)
Lookup end point by name or full URL.


lookupAssociation

public Association lookupAssociation(Endpoint endpoint)

getAuthenticationUrl

public java.lang.String getAuthenticationUrl(Endpoint endpoint,
                                             Association association)


Copyright 2009-2011, JOpenId