|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.oauth2.OAuth2Template org.springframework.social.facebook.connect.FacebookOAuth2Template
public class FacebookOAuth2Template
Facebook-specific extension of OAuth2Template to use a RestTemplate that recognizes form-encoded responses as "text/plain". Facebook token responses are form-encoded results with a content type of "text/plain", which prevents the FormHttpMessageConverter registered by default from parsing the results.
Constructor Summary | |
---|---|
FacebookOAuth2Template(String clientId,
String clientSecret)
|
Method Summary | |
---|---|
protected RestTemplate |
createRestTemplate()
|
protected org.springframework.social.oauth2.AccessGrant |
postForAccessGrant(String accessTokenUrl,
MultiValueMap<String,String> parameters)
|
Methods inherited from class org.springframework.social.oauth2.OAuth2Template |
---|
authenticateClient, authenticateClient, buildAuthenticateUrl, buildAuthenticateUrl, buildAuthorizeUrl, buildAuthorizeUrl, createAccessGrant, exchangeCredentialsForAccess, exchangeForAccess, getRestTemplate, refreshAccess, refreshAccess, setRequestFactory, setUseParametersForClientAuthentication |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacebookOAuth2Template(String clientId, String clientSecret)
Method Detail |
---|
protected RestTemplate createRestTemplate()
createRestTemplate
in class org.springframework.social.oauth2.OAuth2Template
protected org.springframework.social.oauth2.AccessGrant postForAccessGrant(String accessTokenUrl, MultiValueMap<String,String> parameters)
postForAccessGrant
in class org.springframework.social.oauth2.OAuth2Template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |