Record Class SignInSucceeded
java.lang.Object
java.lang.Record
org.jwcarman.who.core.event.SignInSucceeded
- Record Components:
occurredAt- when it happenedmethod- the sign-in mechanismidentityId- the identity that signed incredentialId- the credential that was used
- All Implemented Interfaces:
WhoEvent
public record SignInSucceeded(Instant occurredAt, SignInMethod method, UUID identityId, UUID credentialId)
extends Record
implements WhoEvent
A sign-in succeeded: an email link, an email code or a passkey, published once the session is
saved. API keys and JWTs authenticate every request and publish no
SignInSucceeded; a
refused key or token publishes SignInFailed. Spring Security's
AuthenticationSuccessEvent reports each authenticated API-key request.-
Constructor Summary
ConstructorsConstructorDescriptionSignInSucceeded(Instant occurredAt, SignInMethod method, UUID identityId, UUID credentialId) Validates that no component is null. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecredentialIdrecord 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 theidentityIdrecord component.method()Returns the value of themethodrecord component.Returns the value of theoccurredAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SignInSucceeded
Validates that no component is null.
-
-
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). -
occurredAt
Returns the value of theoccurredAtrecord component.- Specified by:
occurredAtin interfaceWhoEvent- Returns:
- the value of the
occurredAtrecord component
-
method
-
identityId
Returns the value of theidentityIdrecord component.- Returns:
- the value of the
identityIdrecord component
-
credentialId
Returns the value of thecredentialIdrecord component.- Returns:
- the value of the
credentialIdrecord component
-