public class IntrospectValidationSensorKeyProducer extends AbstractSensorKeyProducer
SensorKeyProducer used for token validation metrics for a listener using an introspection endpoint| Constructor and Description |
|---|
IntrospectValidationSensorKeyProducer(java.lang.String contextId,
java.lang.String saslMechanism,
java.net.URI uri)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
SensorKey |
errorKey(java.lang.Throwable e)
Generate a
SensorKey for metrics about failed token validation requests |
SensorKey |
successKey()
Generate a
SensorKey for metrics about successful token validation requests |
public IntrospectValidationSensorKeyProducer(java.lang.String contextId,
java.lang.String saslMechanism,
java.net.URI uri)
contextId - Context id (e.g. a config id or a label)saslMechanism - a mechanism through which the validator is used (e.g. OAUTHBEARER, PLAIN)uri - An introspection endpoint urlpublic SensorKey successKey()
SensorKey for metrics about successful token validation requestspublic SensorKey errorKey(java.lang.Throwable e)
SensorKey for metrics about failed token validation requestse - The Throwable object to go with the failureCopyright © 2024. All rights reserved.