Interface Authentication


public interface Authentication
Represents an interface for implementing authentication mechanisms. The implementations of this interface are expected to provide a way to generate credentials in the form of key-value pairs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(String encodedAuthParamString)
    Plugins which use ":" and/or "," in a configuration parameter value need to implement this interface.
    Generates a set of credentials represented as key-value pairs.
  • Method Details

    • configure

      void configure(String encodedAuthParamString)
      Plugins which use ":" and/or "," in a configuration parameter value need to implement this interface.
      Parameters:
      encodedAuthParamString - the encoded configuration parameter value
    • generateCredentials

      Map<String,String> generateCredentials()
      Generates a set of credentials represented as key-value pairs.
      Returns:
      a map containing the generated credentials, where the keys represent the credential type (e.g., username, password) and the values represent the corresponding credential values.