Record Class StandaloneLoginFlow.LoginResult.Success<U>
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.standalone.StandaloneLoginFlow.LoginResult.Success<U>
- All Implemented Interfaces:
StandaloneLoginFlow.LoginResult<U>
- Enclosing interface:
StandaloneLoginFlow.LoginResult<U>
public static record StandaloneLoginFlow.LoginResult.Success<U>(U subject)
extends Record
implements StandaloneLoginFlow.LoginResult<U>
Credentials were valid and a subject was bound into the store.
-
Nested Class Summary
Nested classes/interfaces inherited from interface StandaloneLoginFlow.LoginResult
StandaloneLoginFlow.LoginResult.LockedOut<U>, StandaloneLoginFlow.LoginResult.Rejected<U>, StandaloneLoginFlow.LoginResult.Success<U>Modifier and TypeInterfaceDescriptionstatic final recordThe username is currently locked out.static final recordCredentials were invalid (wrong password, unknown user, etc.).static final recordCredentials were valid and a subject was bound into the store. -
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.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Success
Creates an instance of aSuccessrecord class.- Parameters:
subject- the value for thesubjectrecord component
-
-
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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-