Package com.tnsai.security
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 Summary
ConstructorsConstructorDescriptionAccessRequest(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 aAccessRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionNamerecord component.Returns the value of theactionTyperecord component.Returns the value of theauthorityrecord component.Returns the value of thebindingFingerprintrecord component.Returns the value of thedeclarationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutingAgentrecord component.executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationrecord component.Returns the value of thepartitionFingerprintrecord component.target()Returns the value of thetargetrecord component.Returns the value of thetargetSystemrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aAccessRequestrecord class.- Parameters:
actionName- the value for theactionNamerecord componentactionType- the value for theactionTyperecord componenttarget- the value for thetargetrecord componentdeclaration- the value for thedeclarationrecord componentinvocation- the value for theinvocationrecord componentexecutor- the value for theexecutorrecord componentauthority- the value for theauthorityrecord componentexecutingAgent- the value for theexecutingAgentrecord componenttargetSystem- the value for thetargetSystemrecord componentbindingFingerprint- the value for thebindingFingerprintrecord componentpartitionFingerprint- the value for thepartitionFingerprintrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
actionName
Returns the value of theactionNamerecord component.- Returns:
- the value of the
actionNamerecord component
-
actionType
Returns the value of theactionTyperecord component.- Returns:
- the value of the
actionTyperecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
declaration
Returns the value of thedeclarationrecord component.- Returns:
- the value of the
declarationrecord component
-
invocation
Returns the value of theinvocationrecord component.- Returns:
- the value of the
invocationrecord component
-
executor
Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-
authority
Returns the value of theauthorityrecord component.- Returns:
- the value of the
authorityrecord component
-
executingAgent
Returns the value of theexecutingAgentrecord component.- Returns:
- the value of the
executingAgentrecord component
-
targetSystem
Returns the value of thetargetSystemrecord component.- Returns:
- the value of the
targetSystemrecord component
-
bindingFingerprint
Returns the value of thebindingFingerprintrecord component.- Returns:
- the value of the
bindingFingerprintrecord component
-
partitionFingerprint
Returns the value of thepartitionFingerprintrecord component.- Returns:
- the value of the
partitionFingerprintrecord component
-