Package io.apicurio.rest.client.auth
Class OidcAuth
- java.lang.Object
-
- io.apicurio.rest.client.auth.OidcAuth
-
-
Constructor Summary
Constructors Constructor Description OidcAuth(ApicurioHttpClientProvider httpClientProvider, String tokenEndpoint, String clientId, String clientSecret, Optional<RestClientErrorHandler> optionalErrorHandler)OidcAuth(String tokenEndpoint, String clientId, String clientSecret, Optional<RestClientErrorHandler> optionalErrorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Map<String,String> requestHeaders)Called to apply this auth mechanism to the HTTP request headers.Stringauthenticate()StringobtainAccessTokenWithBasicCredentials(String username, String password)
-
-
-
Constructor Detail
-
OidcAuth
public OidcAuth(String tokenEndpoint, String clientId, String clientSecret, Optional<RestClientErrorHandler> optionalErrorHandler)
-
OidcAuth
public OidcAuth(ApicurioHttpClientProvider httpClientProvider, String tokenEndpoint, String clientId, String clientSecret, Optional<RestClientErrorHandler> optionalErrorHandler)
-
-
Method Detail
-
apply
public void apply(Map<String,String> requestHeaders)
Description copied from interface:AuthCalled to apply this auth mechanism to the HTTP request headers. Typically an implementation would add an "Authorization" header or something similar.- Specified by:
applyin interfaceAuth- See Also:
Auth.apply(java.util.Map)
-
authenticate
public String authenticate()
-
-