Class AgentAuthentication

java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.AgentAuthentication

public class AgentAuthentication extends Object
Represents the authentication information required to interact with an agent.

This type defines the authentication mechanisms supported by an agent and any optional credentials information that may be needed for authentication.

Since:
1.0.0
  • Constructor Details

    • AgentAuthentication

      public AgentAuthentication()
  • Method Details

    • copy

      public AgentAuthentication copy()
      Creates a copy of this AgentAuthentication.
      Returns:
      A new AgentAuthentication instance with the same values as this one
    • getSchemes

      public List<String> getSchemes()
      Gets the list of authentication schemes supported by this agent.
      Returns:
      The supported authentication schemes
    • setSchemes

      public void setSchemes(List<String> schemes)
      Sets the list of authentication schemes supported by this agent.
      Parameters:
      schemes - The supported authentication schemes
    • getCredentials

      public String getCredentials()
      Gets the optional credentials' information.
      Returns:
      The credentials information, or null if not specified
    • setCredentials

      public void setCredentials(String credentials)
      Sets the optional credentials' information.
      Parameters:
      credentials - The credentials information, or null if not specified
    • equals

      public boolean equals(Object object)
      Compares this AgentAuthentication with another object for equality.
      Overrides:
      equals in class Object
      Parameters:
      object - The object to compare with
      Returns:
      true if the objects are equal, false otherwise
    • hashCode

      public int hashCode()
      Generates a hash code for this AgentAuthentication.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this object