public abstract class BaseOpenIdClient<U extends CommonProfile> extends IndirectClient<OpenIdCredentials,U>
| Modifier and Type | Field and Description |
|---|---|
static String |
DISCOVERY_INFORMATION |
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETERlogger| Constructor and Description |
|---|
BaseOpenIdClient() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract U |
createProfile(org.openid4java.message.AuthSuccess authSuccess)
Create the appropriate OpenID profile.
|
ClientType |
getClientType()
Return the client type.
|
protected String |
getDiscoveryInformationSessionAttributeName()
Return the name of the attribute storing in session the discovery information.
|
protected abstract org.openid4java.message.ax.FetchRequest |
getFetchRequest()
Get a fetch request for attributes.
|
protected abstract String |
getUser(WebContext context)
Return the user identifier for the web context.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected boolean |
isDirectRedirection()
Define if this client has a direct redirection.
|
protected OpenIdCredentials |
retrieveCredentials(WebContext context) |
protected RedirectAction |
retrieveRedirectAction(WebContext context) |
protected U |
retrieveUserProfile(OpenIdCredentials credentials,
WebContext context) |
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrladdAuthorizationGenerator, clone, getAuthorizationGenerators, getName, getUserProfile, newClient, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toStringinit, reinitpublic static final String DISCOVERY_INFORMATION
protected void internalInit(WebContext context)
InitializableWebObjectinternalInit in class InitializableWebObjectcontext - the web contextprotected abstract String getUser(WebContext context)
context - the web contextprotected String getDiscoveryInformationSessionAttributeName()
protected abstract org.openid4java.message.ax.FetchRequest getFetchRequest()
throws org.openid4java.message.MessageException
org.openid4java.message.MessageException - an OpenID exceptionprotected RedirectAction retrieveRedirectAction(WebContext context)
retrieveRedirectAction in class IndirectClient<OpenIdCredentials,U extends CommonProfile>protected boolean isDirectRedirection()
IndirectClientisDirectRedirection in class IndirectClient<OpenIdCredentials,U extends CommonProfile>protected OpenIdCredentials retrieveCredentials(WebContext context)
retrieveCredentials in class IndirectClient<OpenIdCredentials,U extends CommonProfile>protected abstract U createProfile(org.openid4java.message.AuthSuccess authSuccess) throws org.openid4java.message.MessageException
authSuccess - the authentication success messageorg.openid4java.message.MessageException - an OpenID exceptionprotected U retrieveUserProfile(OpenIdCredentials credentials, WebContext context)
retrieveUserProfile in class BaseClient<OpenIdCredentials,U extends CommonProfile>public ClientType getClientType()
BaseClientgetClientType in class BaseClient<OpenIdCredentials,U extends CommonProfile>Copyright © 2016. All rights reserved.