Class OAuth2JwtAccessTokenResponseClient
- java.lang.Object
-
- com.atlassian.connect.spring.internal.request.oauth2.OAuth2JwtAccessTokenResponseClient
-
- All Implemented Interfaces:
org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<OAuth2JwtAssertionAuthorizationGrantRequest>
@Component public class OAuth2JwtAccessTokenResponseClient extends Object implements org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<OAuth2JwtAssertionAuthorizationGrantRequest>
-
-
Constructor Summary
Constructors Constructor Description OAuth2JwtAccessTokenResponseClient(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, OAuth2JwtAssertionGenerator jwtAssertionGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.client.RestTemplate
getRestTemplate()
Public to enable integration testing.org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse
getTokenResponse(OAuth2JwtAssertionAuthorizationGrantRequest authorizationGrantRequest)
-
-
-
Constructor Detail
-
OAuth2JwtAccessTokenResponseClient
public OAuth2JwtAccessTokenResponseClient(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, OAuth2JwtAssertionGenerator jwtAssertionGenerator)
-
-
Method Detail
-
getTokenResponse
public org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse getTokenResponse(OAuth2JwtAssertionAuthorizationGrantRequest authorizationGrantRequest)
- Specified by:
getTokenResponse
in interfaceorg.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<OAuth2JwtAssertionAuthorizationGrantRequest>
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate()
Public to enable integration testing.- Returns:
- the rest template used for access token requests
-
-