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, AtlassianConnectSecurityContextHelper securityContextHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.client.OAuth2RestTemplate
authenticatedAs(AtlassianHostUser hostUser)
org.springframework.web.client.RestTemplate
authenticatedAsAddon()
org.springframework.web.client.RestTemplate
authenticatedAsAddon(AtlassianHost host)
org.springframework.security.oauth2.client.OAuth2RestTemplate
authenticatedAsHostActor()
String
createJwt(org.springframework.http.HttpMethod method, URI uri)
-
-
-
Constructor Detail
-
AtlassianHostRestClientsImpl
@Autowired public AtlassianHostRestClientsImpl(JwtSigningRestTemplateFactory jwtSigningRestTemplateFactory, JwtGenerator jwtGenerator, OAuth2RestTemplateFactory oauth2RestTemplateFactory, 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
-
createJwt
public String createJwt(org.springframework.http.HttpMethod method, URI uri)
- Specified by:
createJwt
in interfaceAtlassianHostRestClients
-
authenticatedAsHostActor
public org.springframework.security.oauth2.client.OAuth2RestTemplate authenticatedAsHostActor()
- Specified by:
authenticatedAsHostActor
in interfaceAtlassianHostRestClients
-
authenticatedAs
public org.springframework.security.oauth2.client.OAuth2RestTemplate authenticatedAs(AtlassianHostUser hostUser)
- Specified by:
authenticatedAs
in interfaceAtlassianHostRestClients
-
-