public abstract class OpenIdExtension extends Object implements hudson.ExtensionPoint
Constructor and Description |
---|
OpenIdExtension() |
Modifier and Type | Method and Description |
---|---|
static hudson.ExtensionList<OpenIdExtension> |
all()
All registered extension points.
|
abstract void |
extend(org.openid4java.message.AuthRequest authRequest)
Extend the authentication request.
|
void |
extendFetch(org.openid4java.message.ax.FetchRequest request) |
static void |
extendRequest(org.openid4java.message.AuthRequest authRequest)
Extend the authentication request.
|
protected <T> T |
getMessageAs(Class<T> c,
org.openid4java.message.AuthSuccess authSuccess,
String typeUri)
Obtain an extended response message from an
AuthSuccess instance given the class
and URI type of the response message. |
boolean |
isApplicable(hudson.security.SecurityRealm realm)
Allow Extensions to determine that they are applicable when used with specific security realms.
|
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.
|
public boolean isApplicable(hudson.security.SecurityRealm realm)
realm
- the realm.true
if this extension is appropriate.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 requestorg.openid4java.message.MessageException
- if there is a message error extending the requestpublic 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.public void extendFetch(org.openid4java.message.ax.FetchRequest request) throws org.openid4java.message.MessageException
org.openid4java.message.MessageException
protected <T> T getMessageAs(Class<T> c, org.openid4java.message.AuthSuccess authSuccess, 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 requestpublic 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.Copyright © 2016. All rights reserved.