Class AtlassianHostRestClientsImpl
- java.lang.Object
-
- com.atlassian.connect.spring.internal.request.AtlassianHostRestClientsImpl
-
- All Implemented Interfaces:
AtlassianHostRestClients
@Component public class AtlassianHostRestClientsImpl extends Object implements AtlassianHostRestClients
-
-
Constructor Summary
Constructors Constructor Description AtlassianHostRestClientsImpl(JwtSigningRestTemplateFactory jwtSigningRestTemplateFactory, JwtGenerator jwtGenerator, OAuth2RestTemplateFactory oauth2RestTemplateFactory, OAuth2JwtTokenService oAuth2JwtTokenService, OAuth2ClientCredentialsSigningRestTemplateFactory oAuth2ClientCredentialsSigningRestTemplateFactory, AtlassianConnectSecurityContextHelper securityContextHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.client.RestTemplate
authenticatedAs(AtlassianHostUser hostUser)
org.springframework.web.client.RestTemplate
authenticatedAsAddon()
org.springframework.web.client.RestTemplate
authenticatedAsAddon(AddonAuthenticationType auth)
org.springframework.web.client.RestTemplate
authenticatedAsAddon(AtlassianHost host)
org.springframework.web.client.RestTemplate
authenticatedAsAddon(AtlassianHost host, AddonAuthenticationType auth)
org.springframework.web.client.RestTemplate
authenticatedAsHostActor()
String
createJwt(org.springframework.http.HttpMethod method, URI uri)
org.springframework.security.oauth2.core.OAuth2AccessToken
getAccessToken(AtlassianHostUser hostUser)
boolean
isClientCredentialsAvailable(AtlassianHost host)
-
-
-
Constructor Detail
-
AtlassianHostRestClientsImpl
@Autowired public AtlassianHostRestClientsImpl(JwtSigningRestTemplateFactory jwtSigningRestTemplateFactory, JwtGenerator jwtGenerator, OAuth2RestTemplateFactory oauth2RestTemplateFactory, OAuth2JwtTokenService oAuth2JwtTokenService, OAuth2ClientCredentialsSigningRestTemplateFactory oAuth2ClientCredentialsSigningRestTemplateFactory, AtlassianConnectSecurityContextHelper securityContextHelper)
-
-
Method Detail
-
authenticatedAsAddon
public org.springframework.web.client.RestTemplate authenticatedAsAddon()
- Specified by:
authenticatedAsAddon
in interfaceAtlassianHostRestClients
-
authenticatedAsAddon
public org.springframework.web.client.RestTemplate authenticatedAsAddon(AtlassianHost host)
- Specified by:
authenticatedAsAddon
in interfaceAtlassianHostRestClients
-
authenticatedAsAddon
public org.springframework.web.client.RestTemplate authenticatedAsAddon(AddonAuthenticationType auth)
- Specified by:
authenticatedAsAddon
in interfaceAtlassianHostRestClients
-
authenticatedAsAddon
public org.springframework.web.client.RestTemplate authenticatedAsAddon(AtlassianHost host, AddonAuthenticationType auth)
- Specified by:
authenticatedAsAddon
in interfaceAtlassianHostRestClients
-
isClientCredentialsAvailable
public boolean isClientCredentialsAvailable(AtlassianHost host)
- Specified by:
isClientCredentialsAvailable
in interfaceAtlassianHostRestClients
-
createJwt
public String createJwt(org.springframework.http.HttpMethod method, URI uri)
- Specified by:
createJwt
in interfaceAtlassianHostRestClients
-
authenticatedAsHostActor
public org.springframework.web.client.RestTemplate authenticatedAsHostActor()
- Specified by:
authenticatedAsHostActor
in interfaceAtlassianHostRestClients
-
authenticatedAs
public org.springframework.web.client.RestTemplate authenticatedAs(AtlassianHostUser hostUser)
- Specified by:
authenticatedAs
in interfaceAtlassianHostRestClients
-
getAccessToken
public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken(AtlassianHostUser hostUser)
- Specified by:
getAccessToken
in interfaceAtlassianHostRestClients
-
-