public class RestOAuth2Template
extends org.springframework.social.oauth2.OAuth2Template
Constructor and Description |
---|
RestOAuth2Template(String clientId,
String clientSecret,
String authorizeUrl,
String accessTokenUrl,
org.springframework.web.client.RestTemplate template) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.client.RestTemplate |
createRestTemplate() |
String |
getId() |
protected org.springframework.social.oauth2.AccessGrant |
postForAccessGrant(String accessTokenUrl,
org.springframework.util.MultiValueMap<String,String> parameters) |
void |
setId(String id) |
authenticateClient, authenticateClient, buildAuthenticateUrl, buildAuthenticateUrl, buildAuthorizeUrl, buildAuthorizeUrl, createAccessGrant, exchangeCredentialsForAccess, exchangeForAccess, getRestTemplate, refreshAccess, refreshAccess, setRequestFactory, setUseParametersForClientAuthentication
public String getId()
public void setId(String id)
protected org.springframework.social.oauth2.AccessGrant postForAccessGrant(String accessTokenUrl, org.springframework.util.MultiValueMap<String,String> parameters)
postForAccessGrant
in class org.springframework.social.oauth2.OAuth2Template
protected org.springframework.web.client.RestTemplate createRestTemplate()
createRestTemplate
in class org.springframework.social.oauth2.OAuth2Template
Copyright © 2020. All rights reserved.