|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.openid.OpenIdExtension
public abstract class OpenIdExtension
An OpenID extension for extending an authentication request and processing an authentication success. TODO currently there is no mechanism to add general properties to the User or the OpenIdUserProperty
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
OpenIdExtension()
|
|
| Method Summary | ||
|---|---|---|
static hudson.ExtensionList<OpenIdExtension> |
all()
All registered extension points. |
|
abstract void |
extend(org.openid4java.message.AuthRequest authRequest)
Extend the authentication request. |
|
static void |
extendRequest(org.openid4java.message.AuthRequest authRequest)
Extend the authentication request. |
|
protected
|
getMessageAs(java.lang.Class<T> c,
org.openid4java.message.AuthSuccess authSuccess,
java.lang.String typeUri)
Obtain an extended response message from an AuthSuccess instance given the class
and URI type of the response message. |
|
abstract void |
process(org.openid4java.message.AuthSuccess authSuccess,
Identity id)
Process the authentication success. |
|
static void |
processResponse(org.openid4java.message.AuthSuccess authSuccess,
Identity id)
Process the authentication success. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenIdExtension()
| Method Detail |
|---|
public abstract void extend(org.openid4java.message.AuthRequest authRequest)
throws org.openid4java.message.MessageException
The implementation may add extensions to authRequest using
Message.addExtension(org.openid4java.message.MessageExtension).
authRequest - the authentication request
org.openid4java.message.MessageException - if there is a message error extending the request
public abstract void process(org.openid4java.message.AuthSuccess authSuccess,
Identity id)
throws org.openid4java.message.MessageException
The implementation may extract MessageExtension implementations from authSuccess
and add information to id.
authSuccess - the authentication success.id - the identity.
org.openid4java.message.MessageException - if there is a message error processing the success.
protected <T> T getMessageAs(java.lang.Class<T> c,
org.openid4java.message.AuthSuccess authSuccess,
java.lang.String typeUri)
throws org.openid4java.message.MessageException
AuthSuccess instance given the class
and URI type of the response message.
T - the type of the response message.c - the class of the response message.authSuccess - the authorization success.typeUri - the URI type of the response message.
org.openid4java.message.MessageException - if an error obtaining the response message.public static hudson.ExtensionList<OpenIdExtension> all()
public static void extendRequest(org.openid4java.message.AuthRequest authRequest)
throws org.openid4java.message.MessageException
All extension points will be iterated through and each one will extend the request.
authRequest - the authentication request.
org.openid4java.message.MessageException - if there is a message error extending the request
public static void processResponse(org.openid4java.message.AuthSuccess authSuccess,
Identity id)
throws org.openid4java.message.MessageException
All extension points will be iterated through and each one will process the success.
authSuccess - the authentication success.id - the identity.
org.openid4java.message.MessageException - if there is a message error processing the success.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||