Package io.strimzi.api.kafka.model.kafka
Class KafkaAuthorizationKeycloak
java.lang.Object
io.strimzi.api.kafka.model.kafka.KafkaAuthorization
io.strimzi.api.kafka.model.kafka.KafkaAuthorizationKeycloak
- All Implemented Interfaces:
UnknownPropertyPreserving
Configures Keycloak authorization on the brokers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()booleanbooleanbooleanbooleanbooleanvoidsetClientId(String clientId) voidsetConnectTimeoutSeconds(Integer connectTimeoutSeconds) voidsetDelegateToKafkaAcls(boolean delegateToKafkaAcls) voidsetDisableTlsHostnameVerification(boolean disableTlsHostnameVerification) voidsetEnableMetrics(boolean enableMetrics) voidsetGrantsAlwaysLatest(boolean grantsAlwaysLatest) voidsetGrantsGcPeriodSeconds(Integer grantsGcPeriodSeconds) voidsetGrantsMaxIdleTimeSeconds(Integer grantsMaxIdleTimeSeconds) voidsetGrantsRefreshPeriodSeconds(Integer grantsRefreshPeriodSeconds) voidsetGrantsRefreshPoolSize(Integer grantsRefreshPoolSize) voidsetHttpRetries(Integer httpRetries) voidsetIncludeAcceptHeader(boolean includeAcceptHeader) voidsetReadTimeoutSeconds(Integer readTimeoutSeconds) voidsetSuperUsers(List<String> superUsers) voidsetTlsTrustedCertificates(List<CertSecretSource> tlsTrustedCertificates) voidsetTokenEndpointUri(String tokenEndpointUri) booleanWhen delegation to Kafka Simple Authorizer is enabled, the Kafka Admin API can be used to manage the Kafka ACLs.Methods inherited from class io.strimzi.api.kafka.model.kafka.KafkaAuthorization
getAdditionalProperties, setAdditionalProperty
-
Field Details
-
TYPE_KEYCLOAK
- See Also:
-
AUTHORIZER_CLASS_NAME
- See Also:
-
-
Constructor Details
-
KafkaAuthorizationKeycloak
public KafkaAuthorizationKeycloak()
-
-
Method Details
-
getType
- Specified by:
getTypein classKafkaAuthorization
-
supportsAdminApi
public boolean supportsAdminApi()When delegation to Kafka Simple Authorizer is enabled, the Kafka Admin API can be used to manage the Kafka ACLs. If it is disabled, using the Admin API is not possible.- Specified by:
supportsAdminApiin classKafkaAuthorization- Returns:
- True when delegation to Kafka Simple Authorizer is enabled and the Kafka Admin API can be used to manage Simple ACLs.
-
getClientId
-
setClientId
-
getTokenEndpointUri
-
setTokenEndpointUri
-
getTlsTrustedCertificates
-
setTlsTrustedCertificates
-
isDisableTlsHostnameVerification
public boolean isDisableTlsHostnameVerification() -
setDisableTlsHostnameVerification
public void setDisableTlsHostnameVerification(boolean disableTlsHostnameVerification) -
isDelegateToKafkaAcls
public boolean isDelegateToKafkaAcls() -
setDelegateToKafkaAcls
public void setDelegateToKafkaAcls(boolean delegateToKafkaAcls) -
getGrantsRefreshPeriodSeconds
-
setGrantsRefreshPeriodSeconds
-
getGrantsRefreshPoolSize
-
setGrantsRefreshPoolSize
-
getGrantsMaxIdleTimeSeconds
-
setGrantsMaxIdleTimeSeconds
-
getGrantsGcPeriodSeconds
-
setGrantsGcPeriodSeconds
-
isGrantsAlwaysLatest
public boolean isGrantsAlwaysLatest() -
setGrantsAlwaysLatest
public void setGrantsAlwaysLatest(boolean grantsAlwaysLatest) -
getSuperUsers
-
setSuperUsers
-
getConnectTimeoutSeconds
-
setConnectTimeoutSeconds
-
getReadTimeoutSeconds
-
setReadTimeoutSeconds
-
getHttpRetries
-
setHttpRetries
-
isEnableMetrics
public boolean isEnableMetrics() -
setEnableMetrics
public void setEnableMetrics(boolean enableMetrics) -
isIncludeAcceptHeader
public boolean isIncludeAcceptHeader() -
setIncludeAcceptHeader
public void setIncludeAcceptHeader(boolean includeAcceptHeader)
-