java.lang.Object
io.strimzi.kafka.oauth.server.authorizer.UserSpec

public class UserSpec extends Object
A class used to hold parsed superusers specs
  • Method Details

    • getType

      public String getType()
      Get the type
      Returns:
      The type as a string
    • getName

      public String getName()
      Get the name
      Returns:
      The name
    • of

      public static UserSpec of(String principal)
      Factory method to parse a UserSpec instance from a string
      Parameters:
      principal - A principal as a string
      Returns:
      A new UserSpec instance
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object