Class AtlassianOAuth2ClientCredentialsTokenResponseClient

  • All Implemented Interfaces:
    org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest>

    @Component
    public class AtlassianOAuth2ClientCredentialsTokenResponseClient
    extends Object
    implements org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest>
    • Constructor Detail

      • AtlassianOAuth2ClientCredentialsTokenResponseClient

        @Autowired
        public AtlassianOAuth2ClientCredentialsTokenResponseClient​(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder,
                                                                   AtlassianRequestUtils requestUtils)
    • Method Detail

      • getTokenResponse

        public org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse getTokenResponse​(org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest clientCredentialsGrantRequest)
        Specified by:
        getTokenResponse in interface org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest>
      • getResponse

        public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> getResponse​(org.springframework.http.RequestEntity<?> request)
      • getRestTemplate

        public org.springframework.web.client.RestTemplate getRestTemplate()
        Public to enable integration testing.
        Returns:
        the rest template used for access token requests