Package org.teiid.spring.data.rest
Class RestOAuth2Template
- java.lang.Object
-
- org.springframework.social.oauth2.OAuth2Template
-
- org.teiid.spring.data.rest.RestOAuth2Template
-
- All Implemented Interfaces:
org.springframework.social.oauth2.OAuth2Operations
public class RestOAuth2Template extends org.springframework.social.oauth2.OAuth2Template
-
-
Constructor Summary
Constructors Constructor Description RestOAuth2Template(String clientId, String clientSecret, String authorizeUrl, String accessTokenUrl, org.springframework.web.client.RestTemplate template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.springframework.social.oauth2.OAuth2Template
authenticateClient, authenticateClient, buildAuthenticateUrl, buildAuthenticateUrl, buildAuthorizeUrl, buildAuthorizeUrl, createAccessGrant, exchangeCredentialsForAccess, exchangeForAccess, getRestTemplate, refreshAccess, refreshAccess, setRequestFactory, setUseParametersForClientAuthentication
-
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
postForAccessGrant
protected org.springframework.social.oauth2.AccessGrant postForAccessGrant(String accessTokenUrl, org.springframework.util.MultiValueMap<String,String> parameters)
- Overrides:
postForAccessGrant
in classorg.springframework.social.oauth2.OAuth2Template
-
createRestTemplate
protected org.springframework.web.client.RestTemplate createRestTemplate()
- Overrides:
createRestTemplate
in classorg.springframework.social.oauth2.OAuth2Template
-
-