Class KeycloakProviderConfiguration
java.lang.Object
org.apache.camel.undertow.spring.boot.providers.AbstractProviderConfiguration
org.apache.camel.undertow.spring.boot.providers.KeycloakProviderConfiguration
Configuration of provider for the Keycloak server.
Requires 4 attributes: server url, realmId, clientId and userNameAttribute (with default value "preferred_username")
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.undertow.spring.boot.providers.AbstractProviderConfiguration
AbstractProviderConfiguration.TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.client.registration.ClientRegistrationorg.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, ? extends org.springframework.security.authentication.AbstractAuthenticationToken> getType()getUrl()voidsetClientId(String clientId) voidsetRealmId(String realmId) voidvoidsetUserNameAttribute(String userNameAttribute) Methods inherited from class org.apache.camel.undertow.spring.boot.providers.AbstractProviderConfiguration
toString
-
Constructor Details
-
KeycloakProviderConfiguration
public KeycloakProviderConfiguration()
-
-
Method Details
-
getType
-
getJwtAuthenticationConverter
public org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends org.springframework.security.authentication.AbstractAuthenticationToken> getJwtAuthenticationConverter()- Overrides:
getJwtAuthenticationConverterin classAbstractProviderConfiguration
-
getClientRegistration
public org.springframework.security.oauth2.client.registration.ClientRegistration getClientRegistration() throws URISyntaxException- Specified by:
getClientRegistrationin classAbstractProviderConfiguration- Throws:
URISyntaxException
-
getUrl
-
setUrl
-
getClientId
-
setClientId
-
getRealmId
-
setRealmId
-
getUserNameAttribute
- Specified by:
getUserNameAttributein classAbstractProviderConfiguration
-
setUserNameAttribute
-