Class AgentAuthentication
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.AgentAuthentication
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this AgentAuthentication.booleanCompares this AgentAuthentication with another object for equality.Gets the optional credentials' information.Gets the list of authentication schemes supported by this agent.inthashCode()Generates a hash code for this AgentAuthentication.voidsetCredentials(String credentials) Sets the optional credentials' information.voidsetSchemes(List<String> schemes) Sets the list of authentication schemes supported by this agent.
-
Constructor Details
-
AgentAuthentication
public AgentAuthentication()
-
-
Method Details
-
copy
Creates a copy of this AgentAuthentication.- Returns:
- A new AgentAuthentication instance with the same values as this one
-
getSchemes
Gets the list of authentication schemes supported by this agent.- Returns:
- The supported authentication schemes
-
setSchemes
Sets the list of authentication schemes supported by this agent.- Parameters:
schemes- The supported authentication schemes
-
getCredentials
Gets the optional credentials' information.- Returns:
- The credentials information, or null if not specified
-
setCredentials
Sets the optional credentials' information.- Parameters:
credentials- The credentials information, or null if not specified
-
equals
Compares this AgentAuthentication with another object for equality. -
hashCode
public int hashCode()Generates a hash code for this AgentAuthentication.
-