Package io.apicurio.registry.auth
Class KeycloakAuth
- java.lang.Object
-
- io.apicurio.registry.auth.ClientCredentialsAuth
-
- io.apicurio.registry.auth.KeycloakAuth
-
- All Implemented Interfaces:
Auth
public class KeycloakAuth extends ClientCredentialsAuth
- Author:
- carnalca@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeycloakAuth.Builder
-
Field Summary
-
Fields inherited from class io.apicurio.registry.auth.ClientCredentialsAuth
BEARER, clientId, clientSecret, realm, serverUrl
-
-
Constructor Summary
Constructors Constructor Description KeycloakAuth(String serverUrl, String realm, String clientId, String clientSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Map<String,String> requestHeaders)
Called to apply this auth mechanism to the HTTP request headers.
-
-
-
Method Detail
-
apply
public void apply(Map<String,String> requestHeaders)
Description copied from interface:Auth
Called to apply this auth mechanism to the HTTP request headers. Typically an implementation would add an "Authorization" header or something similar.- See Also:
Auth.apply(java.util.Map)
-
-