- AbstractSensorKeyProducer - Class in io.strimzi.kafka.oauth.metrics
-
A SensorKeyProducer with logic shared by all SensorKeyProducers
- AbstractSensorKeyProducer(String, URI) - Constructor for class io.strimzi.kafka.oauth.metrics.AbstractSensorKeyProducer
-
The constructor, that requires contexId, and an uri on the authorization server associated with the sensor keys.
- addErrorRequestTime(Throwable, long) - Method in interface io.strimzi.kafka.oauth.common.MetricsHandler
-
Called when a request has failed
- addHttpErrorAttrs(Map<String, String>, Throwable) - Static method in class io.strimzi.kafka.oauth.metrics.MetricsUtil
-
Add http error attributes to the passed map of attributes
- addHttpSuccessAttrs(Map<String, String>) - Static method in class io.strimzi.kafka.oauth.metrics.MetricsUtil
-
Add http success attributes to the passed map of attributes
- addSuccessRequestTime(long) - Method in interface io.strimzi.kafka.oauth.common.MetricsHandler
-
Called when a request was successful
- addTime(SensorKey, long) - Method in class io.strimzi.kafka.oauth.services.OAuthMetrics
-
Record a request time in millis.
- apply(JsonNode) - Method in class io.strimzi.kafka.oauth.jsonpath.JsonPathQuery
-
Apply the JsonPath query to passed object
- asHexString(byte[]) - Static method in class io.strimzi.kafka.oauth.common.IOUtil
-
Convert a byte array into a hexadecimal string
- asJson(Object) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
Convert object to JsonNode
- asListOfString(JsonNode) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
This method takes a JsonNode representing an array, or a string, and converts it into a List of String items.
- asListOfString(JsonNode, String) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
This method takes a JsonNode representing an array, or a string, and converts it into a List of String items.
- AUD - Static variable in class io.strimzi.kafka.oauth.common.TokenInfo
-
"aud"
- cancel(boolean) - Method in class io.strimzi.kafka.oauth.services.SessionFuture
-
- cleanupExpired() - Method in class io.strimzi.kafka.oauth.services.Sessions
-
Cleanup the sessions whose lifetime has expired
- Config - Class in io.strimzi.kafka.oauth.common
-
Configuration handling class
- Config() - Constructor for class io.strimzi.kafka.oauth.common.Config
-
Use this construtor if you only want to lookup configuration in system properties and env
without any default configuration.
- Config(Properties) - Constructor for class io.strimzi.kafka.oauth.common.Config
-
Use this constructor to provide default values in case some configuration is not set through system properties or ENV.
- Config(Map<String, ?>) - Constructor for class io.strimzi.kafka.oauth.common.Config
-
Use this constructor to provide default values in case some configuration is not set through system properties or ENV.
- ConfigException - Exception in io.strimzi.kafka.oauth.common
-
The exception used to signal a configuration error
- ConfigException(String) - Constructor for exception io.strimzi.kafka.oauth.common.ConfigException
-
Create a new instance with the specified error message
- ConfigException(String, Throwable) - Constructor for exception io.strimzi.kafka.oauth.common.ConfigException
-
Create a new instance with the specified error message, and a cause
- ConfigProperties - Class in io.strimzi.kafka.oauth.common
-
A helper class to apply configuration override mechanism to a java.util.Properties object.
- ConfigProperties(Properties) - Constructor for class io.strimzi.kafka.oauth.common.ConfigProperties
-
Construct a new instance for existing java.util.Properties object
- ConfigurationKey - Class in io.strimzi.kafka.oauth.services
-
JAAS configuration for the validator or the client can specify the oauth.config.id configuration property in
order to associate a configuration identifier with the metrics so that the metrics are then grouped, and can be queried
by that id.
- ConfigurationKey(String, ValidatorKey) - Constructor for class io.strimzi.kafka.oauth.services.ConfigurationKey
-
Create a new instance
- configure(Map<String, ?>) - Static method in class io.strimzi.kafka.oauth.services.Services
-
Configure a new Services instance.
- ConfigUtil - Class in io.strimzi.kafka.oauth.common
-
The helper class with methods used in multiple places.
- ConfigUtil() - Constructor for class io.strimzi.kafka.oauth.common.ConfigUtil
-
- copy(InputStream, OutputStream) - Static method in class io.strimzi.kafka.oauth.common.IOUtil
-
Copy the content of specified InputStream into the specified OutputStream
- crc32(String) - Static method in class io.strimzi.kafka.oauth.common.IOUtil
-
Calculate a CRC32 for the specified String
- createAnyHostHostnameVerifier() - Static method in class io.strimzi.kafka.oauth.common.SSLUtil
-
Create a new instance of HostnameVerifier that accepts any hostname
- createHostnameVerifier(Config) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Create the HostnameVerifier from configuration in the passed Config object.
- createSSLFactory(Config) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Create the javax.net.ssl.SSLSocketFactory from configuration in the passed Config object.
- createSSLFactory(String, String, String, String, String) - Static method in class io.strimzi.kafka.oauth.common.SSLUtil
-
Create a new SSL Factory from given configuration arguments
- Credentials - Class in io.strimzi.kafka.oauth.services
-
A mechanism for OAuth over PLAIN to associate credentials with the PlainSaslServer
- Credentials() - Constructor for class io.strimzi.kafka.oauth.services.Credentials
-
- CurrentTime - Class in io.strimzi.kafka.oauth.services
-
The source of time used in several places instead of java.lang.System.currentTime.
- CurrentTime() - Constructor for class io.strimzi.kafka.oauth.services.CurrentTime
-
- currentTime() - Static method in class io.strimzi.kafka.oauth.services.CurrentTime
-
Get current time in millis
- currentTime() - Method in interface io.strimzi.kafka.oauth.services.CurrentTimeProvider
-
Get the current time in millis
- CurrentTimeProvider - Interface in io.strimzi.kafka.oauth.services
-
The source of current time in millis as an alternative to calling java.lang.System.currentTimeMillis()
- get(URI, String, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform HTTP GET request and return the response in the specified type.
- get(URI, SSLSocketFactory, String, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform HTTP GET request and return the response in the specified type.
- get(URI, SSLSocketFactory, HostnameVerifier, String, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform HTTP GET request and return the response in the specified type.
- get(URI, SSLSocketFactory, HostnameVerifier, String, Class<T>, int, int) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform HTTP GET request and return the response in the specified type.
- get() - Method in class io.strimzi.kafka.oauth.services.SessionFuture
-
- get(long, TimeUnit) - Method in class io.strimzi.kafka.oauth.services.SessionFuture
-
- get(ConfigurationKey, Supplier<TokenValidator>) - Method in class io.strimzi.kafka.oauth.services.Validators
-
- getAttributes() - Method in class io.strimzi.kafka.oauth.metrics.SensorKey
-
Get the attributes of this SensorKey as a Map
- getClaimFromJWT(String, Object) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
Get specific claim from token.
- getClaimFromJWT(JsonNode, String...) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
Get specific claim from token.
- getConfigId() - Method in class io.strimzi.kafka.oauth.services.ConfigurationKey
-
Get the config id
- getConfigIdHash() - Method in class io.strimzi.kafka.oauth.services.ValidatorKey
-
Get the calculated configuration hash for this instance
- getConfigIdHash() - Method in class io.strimzi.kafka.oauth.services.ValidatorKey.IntrospectionValidatorKey
-
- getConfigIdHash() - Method in class io.strimzi.kafka.oauth.services.ValidatorKey.JwtValidatorKey
-
- getConfigWithFallbackLookup(Config, String, String) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Resolve the configuration value for the key as a string.
- getConnectTimeout(Config) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Resolve the value of the Config.OAUTH_CONNECT_TIMEOUT_SECONDS configuration
- getCredentials() - Method in class io.strimzi.kafka.oauth.services.Services
-
- getCurrentTimeProvider() - Static method in class io.strimzi.kafka.oauth.services.CurrentTime
-
Get the currently set CurrentTimeProvider
- getCutoffIntervalSeconds() - Method in class io.strimzi.kafka.oauth.validator.BackOffTaskScheduler
-
Get the cutoff interval in seconds for exponential backoff
- getGroups() - Method in interface io.strimzi.kafka.oauth.common.BearerTokenWithPayload
-
Get groups associated with this token (principal).
- getId() - Method in class io.strimzi.kafka.oauth.metrics.SensorKey
-
Get a String representation of this SensorKey that uniquely identifies it.
- getInstance() - Static method in class io.strimzi.kafka.oauth.services.Services
-
Get a configured singleton instance
- getJSON() - Method in interface io.strimzi.kafka.oauth.common.BearerTokenWithPayload
-
The token claims as a JSON object.
- getMethod() - Method in exception io.strimzi.kafka.oauth.common.HttpException
-
Get the HTTP method
- getMetrics() - Method in class io.strimzi.kafka.oauth.services.Services
-
- getMinPauseSeconds() - Method in class io.strimzi.kafka.oauth.validator.BackOffTaskScheduler
-
Get the minimum pause in seconds between two consecutive scheduled runs,
so that the next run does not start immediately after the previous run completes.
- getName() - Method in class io.strimzi.kafka.oauth.metrics.SensorKey
-
Get the name of this SensorKey
- getPayload() - Method in interface io.strimzi.kafka.oauth.common.BearerTokenWithPayload
-
- getPrincipal(JsonNode) - Method in class io.strimzi.kafka.oauth.common.PrincipalExtractor
-
Get the principal name
- getPrincipal(SaslServer) - Method in class io.strimzi.kafka.oauth.services.Principals
-
Get the new principal from the cache
- getPrincipals() - Method in class io.strimzi.kafka.oauth.services.Services
-
- getReadTimeout(Config) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Resolve the value of the Config.OAUTH_READ_TIMEOUT_SECONDS configuration
- getResponse() - Method in exception io.strimzi.kafka.oauth.common.HttpException
-
Get the HTTP response body
- getSensorKeyAttrs(String, String, URI, String) - Static method in class io.strimzi.kafka.oauth.metrics.MetricsUtil
-
Get the attributes for the sensor key using passed info.
- getSensorKeyAttrs(String, URI, String) - Static method in class io.strimzi.kafka.oauth.metrics.MetricsUtil
-
Get the attributes for the sensor key using passed info
- getSessionId() - Method in interface io.strimzi.kafka.oauth.common.BearerTokenWithPayload
-
This method returns an id of the current instance of this object.
- getSessions() - Method in class io.strimzi.kafka.oauth.services.Services
-
- getStatus() - Method in exception io.strimzi.kafka.oauth.common.HttpException
-
Get the HTTP status
- getSub(JsonNode) - Method in class io.strimzi.kafka.oauth.common.PrincipalExtractor
-
Get the value of sub claim
- getTimeout(Config, String) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Resolve the configuration value for the key as a timeout in seconds with the default value of 60
- getTimeoutConfigWithFallbackLookup(Config, String, String) - Static method in class io.strimzi.kafka.oauth.common.ConfigUtil
-
Resolve the configuration value for the key as a timeout in seconds with the default value of 60.
- getToken() - Method in class io.strimzi.kafka.oauth.services.SessionFuture
-
Get a BearerTokenWithPayload object representing a session
- getUri() - Method in exception io.strimzi.kafka.oauth.common.HttpException
-
Get the target url
- getValidatorId() - Method in class io.strimzi.kafka.oauth.validator.JWTSignatureValidator
-
- getValidatorId() - Method in class io.strimzi.kafka.oauth.validator.OAuthIntrospectionValidator
-
- getValidatorId() - Method in interface io.strimzi.kafka.oauth.validator.TokenValidator
-
Return the id of this validator
- getValidatorKey() - Method in class io.strimzi.kafka.oauth.services.ConfigurationKey
-
Get the validator key
- getValidators() - Method in class io.strimzi.kafka.oauth.services.Services
-
- getValue(String, String) - Method in class io.strimzi.kafka.oauth.common.Config
-
Get value for property key, returning fallback value if configuration for key is not found.
- getValue(String) - Method in class io.strimzi.kafka.oauth.common.Config
-
Get value for property key or null if not found
- getValueAsBoolean(String, boolean) - Method in class io.strimzi.kafka.oauth.common.Config
-
Get value for property key as boolean or fallback value if not found
Valid values are: "true", "false", "yes", "no", "y", "n", "1", "0"
- getValueAsInt(String, int) - Method in class io.strimzi.kafka.oauth.common.Config
-
Get value for property key as int or fallback value if not found
- getValueAsLong(String, long) - Method in class io.strimzi.kafka.oauth.common.Config
-
Get value for property key as long or fallback value if not found
- getValueAsURI(String) - Method in class io.strimzi.kafka.oauth.common.Config
-
Get value for property key as a URI
- groups() - Method in class io.strimzi.kafka.oauth.common.TokenInfo
-
Get groups for this token
- OAUTH_ACCESS_TOKEN_IS_JWT - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.access.token.is.jwt' config option
- OAUTH_AUDIENCE - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.audience' config option
- OAUTH_CLIENT_ID - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.client.id' config option
- OAUTH_CLIENT_SECRET - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.client.secret' config option
- OAUTH_CONFIG_ID - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.config.id' config option
- OAUTH_CONNECT_TIMEOUT_SECONDS - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.connect.timeout.seconds' config option
- OAUTH_ENABLE_METRICS - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.enable.metrics' config option
- OAUTH_FALLBACK_USERNAME_CLAIM - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.fallback.username.claim' config option
- OAUTH_FALLBACK_USERNAME_PREFIX - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.fallback.username.prefix' config option
- OAUTH_HTTP_RETRIES - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.http.retries' config option
- OAUTH_HTTP_RETRY_PAUSE_MILLIS - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.http.retry.pause.millis' config option
- OAUTH_READ_TIMEOUT_SECONDS - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.read.timeout.seconds' config option
- OAUTH_SCOPE - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.scope' config option
- OAUTH_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.ssl.endpoint.identification.algorithm' config option
- OAUTH_SSL_SECURE_RANDOM_IMPLEMENTATION - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.ssl.secure.random.implementation' config option
- OAUTH_SSL_TRUSTSTORE_CERTIFICATES - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.ssl.truststore.certificates' config option
- OAUTH_SSL_TRUSTSTORE_LOCATION - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.ssl.truststore.location' config option
- OAUTH_SSL_TRUSTSTORE_PASSWORD - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.ssl.truststore.password' config option
- OAUTH_SSL_TRUSTSTORE_TYPE - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.ssl.truststore.type' config option
- OAUTH_TOKENS_NOT_JWT - Static variable in class io.strimzi.kafka.oauth.common.Config
-
Deprecated.
- OAUTH_USERNAME_CLAIM - Static variable in class io.strimzi.kafka.oauth.common.Config
-
The name of 'oauth.username.claim' config option
- OAuthAuthenticator - Class in io.strimzi.kafka.oauth.common
-
A class with methods to authenticate a user or a client to the authorization server's token endpoint,
and obtain an access token in the form of a TokenInfo object.
- OAuthAuthenticator() - Constructor for class io.strimzi.kafka.oauth.common.OAuthAuthenticator
-
- OAuthIntrospectionValidator - Class in io.strimzi.kafka.oauth.validator
-
This class is responsible for validating the token during session authentication by using an introspection endpoint.
- OAuthIntrospectionValidator(String, String, SSLSocketFactory, HostnameVerifier, PrincipalExtractor, String, String, String, String, String, String, String, String, String, int, int, boolean, int, long) - Constructor for class io.strimzi.kafka.oauth.validator.OAuthIntrospectionValidator
-
Create a new instance.
- OAuthMetrics - Class in io.strimzi.kafka.oauth.services
-
The singleton for handling a cache of all the Sensors to prevent unnecessary redundant re-registrations.
- of(String, Map<String, String>) - Static method in class io.strimzi.kafka.oauth.metrics.SensorKey
-
Create a new instance of SensorKey from name and a map of attributes
- of(String, String...) - Static method in class io.strimzi.kafka.oauth.metrics.SensorKey
-
Create a new instance of SensorKey from name and attributes
- randomHexString() - Static method in class io.strimzi.kafka.oauth.common.IOUtil
-
Generate a random 8 character string of hexadecimal digits
- randomHexString(int) - Static method in class io.strimzi.kafka.oauth.common.IOUtil
-
Generate a random string of hexadecimal digits of the specified length
- readJSON(InputStream, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
Parse JSON from InputStream into a specified type
- readJSON(String, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.JSONUtil
-
Parse JSON from String into a specified type
- remove(BearerTokenWithPayload) - Method in class io.strimzi.kafka.oauth.services.Sessions
-
Remove a token from sessions cache
- request(URI, SSLSocketFactory, HostnameVerifier, String, String, String, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform an HTTP request, auto-detecting a method, and using the default connect and read timeouts (60 seconds)..
- request(URI, String, SSLSocketFactory, HostnameVerifier, String, String, String, Class<T>) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform an HTTP request using the default connect and read timeouts (60 seconds).
- request(URI, String, SSLSocketFactory, HostnameVerifier, String, String, String, Class<T>, int, int) - Static method in class io.strimzi.kafka.oauth.common.HttpUtil
-
Perform an HTTP request using the default connect and read timeouts (60 seconds).
- resolve(Properties) - Static method in class io.strimzi.kafka.oauth.common.ConfigProperties
-
Apply the config override mechanism to all the keys in java.util.Properties object passed as defaults,
storing the resolved configuration values into a new java.util.Properties object that is returned as a result.
- resolveAndExportToSystemProperties(Properties) - Static method in class io.strimzi.kafka.oauth.common.ConfigProperties
-
Apply the config override mechanism to all the keys in the passed java.util.Properties object using it
as the final fallback for value resolution.
- resolveTo(Properties) - Method in class io.strimzi.kafka.oauth.common.ConfigProperties
-
Apply the config override mechanism to all the keys in java.util.Properties object used to initialise
this ConfigProperties storing the resolved configuration values to the passed destination object.
- run() - Method in interface io.strimzi.kafka.oauth.common.HttpTask
-
Run a task, and return the result as an object or a null if successful, otherwise throw an exception.
- scheduleTask() - Method in class io.strimzi.kafka.oauth.validator.BackOffTaskScheduler
-
Schedule a task.
- SCOPE - Static variable in class io.strimzi.kafka.oauth.common.TokenInfo
-
"scope"
- scope() - Method in class io.strimzi.kafka.oauth.common.TokenInfo
-
Get scopes for this token
- SensorKey - Class in io.strimzi.kafka.oauth.metrics
-
The SensorKey represents and uniquely identifies the Kafka Metrics API Sensor,
which represents a set of metrics that are updated at the same time.
- SensorKeyProducer - Interface in io.strimzi.kafka.oauth.metrics
-
An interface representing a SensorKey factory.
- ServiceException - Exception in io.strimzi.kafka.oauth.services
-
An exception used to report a background job failure
- ServiceException(String) - Constructor for exception io.strimzi.kafka.oauth.services.ServiceException
-
Create a new instance
- ServiceException(String, Throwable) - Constructor for exception io.strimzi.kafka.oauth.services.ServiceException
-
Create a new instance
- Services - Class in io.strimzi.kafka.oauth.services
-
This class contains singleton components shared among Kafka Broker sessions
- SessionFuture<T> - Class in io.strimzi.kafka.oauth.services
-
- SessionFuture(BearerTokenWithPayload, Future<T>) - Constructor for class io.strimzi.kafka.oauth.services.SessionFuture
-
Create a new instance
- Sessions - Class in io.strimzi.kafka.oauth.services
-
Sessions entries should automatically get cleared as KafkaPrincipals for the sessions get garbage collected by JVM.
- Sessions() - Constructor for class io.strimzi.kafka.oauth.services.Sessions
-
- setCurrentTimeProvider(CurrentTimeProvider) - Static method in class io.strimzi.kafka.oauth.services.CurrentTime
-
Set the current time provider
- setPayload(Object) - Method in interface io.strimzi.kafka.oauth.common.BearerTokenWithPayload
-
Associate a usage dependent object with this instance
- SSLUtil - Class in io.strimzi.kafka.oauth.common
-
A class containing helper methods that deal with SSL / TLS
- SSLUtil() - Constructor for class io.strimzi.kafka.oauth.common.SSLUtil
-
- status() - Method in exception io.strimzi.kafka.oauth.validator.TokenValidationException
-
Get the validation check error status for this exception
- storeCredentials(String, KafkaPrincipal) - Method in class io.strimzi.kafka.oauth.services.Credentials
-
Store credentials to communicate them from PLAIN callback handler to OAuthKafkaPrincipalBuilder when OAuth over PLAIN is used.
- successKey() - Method in class io.strimzi.kafka.oauth.metrics.IntrospectHttpSensorKeyProducer
-
Generate a SensorKey for metrics about successful HTTP requests
- successKey() - Method in class io.strimzi.kafka.oauth.metrics.IntrospectValidationSensorKeyProducer
-
Generate a SensorKey for metrics about successful token validation requests
- successKey() - Method in class io.strimzi.kafka.oauth.metrics.JwksHttpSensorKeyProducer
-
Generate a SensorKey for metrics about successful HTTP requests
- successKey() - Method in class io.strimzi.kafka.oauth.metrics.JwksValidationSensorKeyProducer
-
Generate a SensorKey for metrics about successful token validation requests
- successKey() - Method in interface io.strimzi.kafka.oauth.metrics.SensorKeyProducer
-
Generate a SensorKey for the sensor representing the successful requests
- successKey() - Method in class io.strimzi.kafka.oauth.metrics.UserInfoHttpSensorKeyProducer
-
Generate a SensorKey for metrics about successful HTTP requests