Record Class ActionDenied
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.ActionDenied
- Record Components:
timestamp- UTC creation time, nevernullsubjectId- subject identifier, ornullif no subject was present at the call siteaction- action name (matchesActionPermission#name()), nevernull
- All Implemented Interfaces:
AuditEvent
public record ActionDenied(Instant timestamp, String subjectId, String action)
extends Record
implements AuditEvent
A guarded action call was denied — the subject did not satisfy the
required
ActionPermission.-
Constructor Summary
ConstructorsConstructorDescriptionActionDenied(Instant timestamp, String subjectId, String action) Creates an instance of aActionDeniedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesubjectIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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). -
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAuditEvent- Returns:
- the value of the
timestamprecord component
-
subjectId
-
action
-