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
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.
|
String |
toString() |
getDiscoveryInformationSessionAttributeName, internalInit, retrieveCredentials, retrieveRedirectAction, retrieveUserProfile
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl
addAuthorizationGenerator, addAuthorizationGenerators, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName
init, reinit
public static final String YAHOO_GENERIC_USER_IDENTIFIER
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, HttpAction
BaseOpenIdClient
createProfile
in class BaseOpenIdClient<YahooOpenIdProfile>
authSuccess
- the authentication success messageorg.openid4java.message.MessageException
- an OpenID exceptionHttpAction
- whether an additional HTTP action is requiredpublic String toString()
toString
in class IndirectClient<OpenIdCredentials,YahooOpenIdProfile>
Copyright © 2017. All rights reserved.