Class McpAuthority

java.lang.Object
com.gigaspaces.security.authorities.McpAuthority
All Implemented Interfaces:
InternalAuthority, Authority, Serializable

public class McpAuthority extends Object implements InternalAuthority
Authority controlling access to MCP (Model Context Protocol) server operations.

The string representation is "McpPrivilege <PRIVILEGE>", e.g. "McpPrivilege DEPLOY".

See Also:
  • Constructor Details

  • Method Details

    • valueOf

      public static McpAuthority valueOf(String authority)
    • getAuthority

      public String getAuthority()
      Description copied from interface: Authority
      An Authority that can be represented as a String which is sufficient in precision to be relied upon for an access control decisions.
      Specified by:
      getAuthority in interface Authority
      Returns:
      a representation of the granted authority (expressed as a String with sufficient precision).
    • getPrivilege

      public Privilege getPrivilege()
      Description copied from interface: InternalAuthority
      A granted privilege associated with this Authority.
      Specified by:
      getPrivilege in interface InternalAuthority
      Returns:
      a granted privilege.
    • toString

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object