Class PlainHttpSensorKeyProducer
java.lang.Object
io.strimzi.kafka.oauth.metrics.AbstractSensorKeyProducer
io.strimzi.kafka.oauth.server.plain.metrics.PlainHttpSensorKeyProducer
- All Implemented Interfaces:
SensorKeyProducer
A
SensorKeyProducer used for token endpoint HTTP metrics for authentication requests performed by
JaasServerOauthOverPlainValidatorCallbackHandler in client's name-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate aSensorKeyfor metrics about failed HTTP requestsGenerate aSensorKeyfor metrics about successful HTTP requests
-
Constructor Details
-
PlainHttpSensorKeyProducer
Create a new instance- Parameters:
contextId- Context id (e.g. a config id or a label)uri- A token endpoint url
-
-
Method Details
-
successKey
Generate aSensorKeyfor metrics about successful HTTP requests- Returns:
- A sensor key
-
errorKey
Generate aSensorKeyfor metrics about failed HTTP requests- Parameters:
e- The Throwable object to go with the failure- Returns:
- A sensor key
-