Record Class AccessRequest

java.lang.Object
java.lang.Record
com.tnsai.security.AccessRequest

public record AccessRequest(String actionName, ActionType actionType, Object target, AccessDeclaration declaration, InvocationContext invocation, AgentPrincipal executor, AuthorityScope authority, AccessSubject executingAgent, String targetSystem, String bindingFingerprint, String partitionFingerprint) extends Record
Immutable checked execution binding supplied to the existing security evaluator.
  • Constructor Details

    • AccessRequest

      public AccessRequest(String actionName, ActionType actionType, Object target, AccessDeclaration declaration, InvocationContext invocation, AgentPrincipal executor, AuthorityScope authority, AccessSubject executingAgent, String targetSystem, String bindingFingerprint, String partitionFingerprint)
      Creates an instance of a AccessRequest record class.
      Parameters:
      actionName - the value for the actionName record component
      actionType - the value for the actionType record component
      target - the value for the target record component
      declaration - the value for the declaration record component
      invocation - the value for the invocation record component
      executor - the value for the executor record component
      authority - the value for the authority record component
      executingAgent - the value for the executingAgent record component
      targetSystem - the value for the targetSystem record component
      bindingFingerprint - the value for the bindingFingerprint record component
      partitionFingerprint - the value for the partitionFingerprint record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • actionName

      public String actionName()
      Returns the value of the actionName record component.
      Returns:
      the value of the actionName record component
    • actionType

      public ActionType actionType()
      Returns the value of the actionType record component.
      Returns:
      the value of the actionType record component
    • target

      public Object target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • declaration

      public AccessDeclaration declaration()
      Returns the value of the declaration record component.
      Returns:
      the value of the declaration record component
    • invocation

      public InvocationContext invocation()
      Returns the value of the invocation record component.
      Returns:
      the value of the invocation record component
    • executor

      public AgentPrincipal executor()
      Returns the value of the executor record component.
      Returns:
      the value of the executor record component
    • authority

      public AuthorityScope authority()
      Returns the value of the authority record component.
      Returns:
      the value of the authority record component
    • executingAgent

      public AccessSubject executingAgent()
      Returns the value of the executingAgent record component.
      Returns:
      the value of the executingAgent record component
    • targetSystem

      public String targetSystem()
      Returns the value of the targetSystem record component.
      Returns:
      the value of the targetSystem record component
    • bindingFingerprint

      public String bindingFingerprint()
      Returns the value of the bindingFingerprint record component.
      Returns:
      the value of the bindingFingerprint record component
    • partitionFingerprint

      public String partitionFingerprint()
      Returns the value of the partitionFingerprint record component.
      Returns:
      the value of the partitionFingerprint record component