public class YahooOpenIdClient extends BaseOpenIdClient<YahooOpenIdProfile>
This class is the OpenID client to authenticate users with their yahoo account.
It returns a YahooOpenIdProfile
.
YahooOpenIdProfile
Modifier and Type | Field and Description |
---|---|
static String |
YAHOO_GENERIC_USER_IDENTIFIER |
DISCOVERY_INFORMATION
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETER
logger
Constructor and Description |
---|
YahooOpenIdClient() |
Modifier and Type | Method and Description |
---|---|
protected YahooOpenIdProfile |
createProfile(org.openid4java.message.AuthSuccess authSuccess)
Create the appropriate OpenID profile.
|
protected org.openid4java.message.ax.FetchRequest |
getFetchRequest()
Get a fetch request for attributes.
|
protected String |
getUser(WebContext context)
Return the user identifier for the web context.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected BaseClient<OpenIdCredentials,YahooOpenIdProfile> |
newClient()
Create a new instance of the client.
|
String |
toString() |
getClientType, getDiscoveryInformationSessionAttributeName, isDirectRedirection, retrieveCredentials, retrieveRedirectAction, retrieveUserProfile
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl
addAuthorizationGenerator, clone, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
public static final String YAHOO_GENERIC_USER_IDENTIFIER
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class BaseOpenIdClient<YahooOpenIdProfile>
context
- the web contextprotected BaseClient<OpenIdCredentials,YahooOpenIdProfile> newClient()
BaseClient
newClient
in class BaseClient<OpenIdCredentials,YahooOpenIdProfile>
protected String getUser(WebContext context)
BaseOpenIdClient
getUser
in class BaseOpenIdClient<YahooOpenIdProfile>
context
- the web contextprotected org.openid4java.message.ax.FetchRequest getFetchRequest() throws org.openid4java.message.MessageException
BaseOpenIdClient
getFetchRequest
in class BaseOpenIdClient<YahooOpenIdProfile>
org.openid4java.message.MessageException
- an OpenID exceptionprotected YahooOpenIdProfile createProfile(org.openid4java.message.AuthSuccess authSuccess) throws org.openid4java.message.MessageException
BaseOpenIdClient
createProfile
in class BaseOpenIdClient<YahooOpenIdProfile>
authSuccess
- the authentication success messageorg.openid4java.message.MessageException
- an OpenID exceptionpublic String toString()
toString
in class BaseClient<OpenIdCredentials,YahooOpenIdProfile>
Copyright © 2016. All rights reserved.