hudson.plugins.openid
Class OpenIdSession

java.lang.Object
  extended by hudson.plugins.openid.OpenIdSession

public abstract class OpenIdSession
extends java.lang.Object

Represents state for an OpenID authentication.

Author:
Kohsuke Kawaguchi

Constructor Summary
OpenIdSession(org.openid4java.consumer.ConsumerManager manager, org.openid4java.discovery.DiscoveryInformation endpoint, java.lang.String finishUrl)
           
OpenIdSession(org.openid4java.consumer.ConsumerManager manager, java.lang.String openid, java.lang.String finishUrl)
           
 
Method Summary
 org.kohsuke.stapler.HttpResponse doCommenceLogin()
          Starts the login session.
 org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
          When the identity provider is done with its thing, the user comes back here.
static OpenIdSession getCurrent()
          Gets the OpenIdSession associated with HTTP session in the current request.
protected abstract  org.kohsuke.stapler.HttpResponse onSuccess(Identity identity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIdSession

public OpenIdSession(org.openid4java.consumer.ConsumerManager manager,
                     org.openid4java.discovery.DiscoveryInformation endpoint,
                     java.lang.String finishUrl)

OpenIdSession

public OpenIdSession(org.openid4java.consumer.ConsumerManager manager,
                     java.lang.String openid,
                     java.lang.String finishUrl)
              throws org.openid4java.OpenIDException
Throws:
org.openid4java.OpenIDException
Method Detail

doCommenceLogin

public org.kohsuke.stapler.HttpResponse doCommenceLogin()
                                                 throws java.io.IOException,
                                                        org.openid4java.OpenIDException
Starts the login session.

Throws:
java.io.IOException
org.openid4java.OpenIDException

doFinishLogin

public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
                                               throws java.io.IOException,
                                                      org.openid4java.OpenIDException
When the identity provider is done with its thing, the user comes back here.

Throws:
java.io.IOException
org.openid4java.OpenIDException

onSuccess

protected abstract org.kohsuke.stapler.HttpResponse onSuccess(Identity identity)
                                                       throws java.io.IOException
Throws:
java.io.IOException

getCurrent

public static OpenIdSession getCurrent()
Gets the OpenIdSession associated with HTTP session in the current request.



Copyright © 2004-2011. All Rights Reserved.