Record Class StepUpChallenged
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.StepUpChallenged
- Record Components:
timestamp- UTC creation time, nevernullsubjectId- subject identifier, ornullfor anonymousroute- navigation route or REST path that triggered the challenge, ornullmethod- step-up mechanism token ("MFA","REAUTH", …) — non-blankreason- adapter-neutral diagnostic from the policy decision, possibly empty
- All Implemented Interfaces:
AuditEvent
public record StepUpChallenged(Instant timestamp, String subjectId, String route, String method, String reason)
extends Record
implements AuditEvent
An adapter challenged the subject for a step-up authentication —
either via an HTTP
401 + WWW-Authenticate response (REST) or
by rerouting to a configured step-up route (Vaadin).
Emitted by the adapter in addition to the coarse
AccessDenied event. Structured fields (method,
reason) avoid the fragile colon-parsing of the
AccessDenied.reason string, so audit consumers (Grafana,
SIEM) can pivot on the mechanism without regex.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.reason()Returns the value of thereasonrecord component.route()Returns the value of therouterecord component.Returns the value of thesubjectIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepUpChallenged
-
-
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
-
route
-
method
-
reason
-