public abstract class BaseOpenIdClient<U extends CommonProfile> extends BaseClient<OpenIdCredentials,U>
| Modifier and Type | Field and Description |
|---|---|
static String |
DISCOVERY_INFORMATION |
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, logger, NEEDS_CLIENT_REDIRECTION_PARAMETER| Constructor and Description |
|---|
BaseOpenIdClient() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract U |
createProfile(org.openid4java.message.AuthSuccess authSuccess)
Create the appropriate OpenID profile.
|
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.
|
Protocol |
getProtocol() |
protected abstract String |
getUser(WebContext context)
Return the user identifier for the web context.
|
protected void |
internalInit() |
protected boolean |
isDirectRedirection() |
protected OpenIdCredentials |
retrieveCredentials(WebContext context) |
protected RedirectAction |
retrieveRedirectAction(WebContext context) |
protected U |
retrieveUserProfile(OpenIdCredentials credentials,
WebContext context) |
addAuthorizationGenerator, clone, getAuthorizationGenerators, getCallbackUrl, getContextualCallbackUrl, getCredentials, getName, getRedirectAction, getRedirectionUrl, getUserProfile, isEnableContextualRedirects, newClient, prependHostToUrlIfNotPresent, redirect, setAuthorizationGenerator, setAuthorizationGenerators, setCallbackUrl, setEnableContextualRedirects, setName, toStringinit, reinitpublic static final String DISCOVERY_INFORMATION
protected void internalInit()
internalInit in class InitializableObjectprotected abstract String getUser(WebContext context)
context - protected String getDiscoveryInformationSessionAttributeName()
protected abstract org.openid4java.message.ax.FetchRequest getFetchRequest()
throws org.openid4java.message.MessageException
org.openid4java.message.MessageExceptionprotected RedirectAction retrieveRedirectAction(WebContext context)
retrieveRedirectAction in class BaseClient<OpenIdCredentials,U extends CommonProfile>protected boolean isDirectRedirection()
isDirectRedirection in class BaseClient<OpenIdCredentials,U extends CommonProfile>protected OpenIdCredentials retrieveCredentials(WebContext context)
retrieveCredentials in class BaseClient<OpenIdCredentials,U extends CommonProfile>protected abstract U createProfile(org.openid4java.message.AuthSuccess authSuccess) throws org.openid4java.message.MessageException
authSuccess - org.openid4java.message.MessageExceptionprotected U retrieveUserProfile(OpenIdCredentials credentials, WebContext context)
retrieveUserProfile in class BaseClient<OpenIdCredentials,U extends CommonProfile>public Protocol getProtocol()
getProtocol in class BaseClient<OpenIdCredentials,U extends CommonProfile>Copyright © 2014. All Rights Reserved.