Class ValidatorKey

java.lang.Object
io.strimzi.kafka.oauth.services.ValidatorKey
Direct Known Subclasses:
ValidatorKey.IntrospectionValidatorKey, ValidatorKey.JwtValidatorKey

public class ValidatorKey extends Object
The class that holds the validator configuration and is used to compare different configurations for equality. It also calculates a unique identifier based on the configuration that is stable across application restarts.

This mechanism allows sharing a single validator across multiple listeners, as long as they are configured with same config parameter values

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getConfigIdHash

      public String getConfigIdHash()
      Get the calculated configuration hash for this instance
      Returns:
      a hash string used to determine equality of two different configurations