Package cronapp.framework.core
Class CronappTokenManager
java.lang.Object
cronapp.framework.core.CronappTokenManager
-
Constructor Summary
ConstructorsConstructorDescriptionCronappTokenManager(Optional<org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager> authorizedClientManager, CronappTokenProperties tokenProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeaders(String url, BiConsumer<String, String> action) voidprocess(org.apache.hc.core5.http.ClassicHttpRequest httpMethod) voidprocess(org.apache.http.client.methods.HttpRequestBase httpMethod)
-
Constructor Details
-
CronappTokenManager
public CronappTokenManager(Optional<org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager> authorizedClientManager, CronappTokenProperties tokenProperties)
-
-
Method Details
-
addHeaders
-
process
public void process(org.apache.hc.core5.http.ClassicHttpRequest httpMethod) throws URISyntaxException - Throws:
URISyntaxException
-
process
public void process(org.apache.http.client.methods.HttpRequestBase httpMethod) throws URISyntaxException - Throws:
URISyntaxException
-