Class GoogleOAuth2Template

  • All Implemented Interfaces:
    org.springframework.social.oauth2.OAuth2Operations

    public class GoogleOAuth2Template
    extends org.springframework.social.oauth2.OAuth2Template
    Google-specific extension to OAuth2Template.
    Author:
    Gabriel Axel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.social.oauth2.AccessGrant postForAccessGrant​(String accessTokenUrl, org.springframework.util.MultiValueMap<String,​String> parameters)  
      • Methods inherited from class org.springframework.social.oauth2.OAuth2Template

        authenticateClient, authenticateClient, buildAuthenticateUrl, buildAuthenticateUrl, buildAuthorizeUrl, buildAuthorizeUrl, createAccessGrant, createRestTemplate, exchangeCredentialsForAccess, exchangeForAccess, getRestTemplate, refreshAccess, refreshAccess, setRequestFactory, setUseParametersForClientAuthentication
    • Constructor Detail

      • GoogleOAuth2Template

        public GoogleOAuth2Template​(String clientId,
                                    String clientSecret)
        Constructor
        Parameters:
        clientId - Id
        clientSecret - Secret
    • Method Detail

      • postForAccessGrant

        protected org.springframework.social.oauth2.AccessGrant postForAccessGrant​(String accessTokenUrl,
                                                                                   org.springframework.util.MultiValueMap<String,​String> parameters)
        Overrides:
        postForAccessGrant in class org.springframework.social.oauth2.OAuth2Template