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, callbackUrlResolverlogger| 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.
|
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 OpenIdCredentials |
retrieveCredentials(WebContext context)
Retrieve the credentials.
|
protected RedirectAction |
retrieveRedirectAction(WebContext context)
Retrieve the redirect action.
|
protected U |
retrieveUserProfile(OpenIdCredentials credentials,
WebContext context)
Retrieve a user userprofile.
|
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrladdAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toStringinit, reinitpublic static final String DISCOVERY_INFORMATION
protected void internalInit(WebContext context)
InitializableWebObjectinternalInit in class IndirectClient<OpenIdCredentials,U extends CommonProfile>context - 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) throws HttpAction
IndirectClientretrieveRedirectAction in class IndirectClient<OpenIdCredentials,U extends CommonProfile>context - the web contextHttpAction - requires a specific HTTP action if necessaryprotected OpenIdCredentials retrieveCredentials(WebContext context) throws HttpAction
IndirectClientretrieveCredentials in class IndirectClient<OpenIdCredentials,U extends CommonProfile>context - the web contextHttpAction - whether an additional HTTP action is requiredprotected abstract U createProfile(org.openid4java.message.AuthSuccess authSuccess) throws HttpAction, org.openid4java.message.MessageException
authSuccess - the authentication success messageorg.openid4java.message.MessageException - an OpenID exceptionHttpAction - whether an additional HTTP action is requiredprotected U retrieveUserProfile(OpenIdCredentials credentials, WebContext context) throws HttpAction
BaseClientretrieveUserProfile in class BaseClient<OpenIdCredentials,U extends CommonProfile>credentials - the credentialscontext - the web contextHttpAction - whether an additional HTTP action is requiredCopyright © 2016. All rights reserved.