Interface StandaloneLoginFlow.LoginResult<U>
- Type Parameters:
U- subject type
- All Known Implementing Classes:
StandaloneLoginFlow.LoginResult.LockedOut, StandaloneLoginFlow.LoginResult.Rejected, StandaloneLoginFlow.LoginResult.Success
- Enclosing class:
StandaloneLoginFlow<T,U>
public static sealed interface StandaloneLoginFlow.LoginResult<U>
permits StandaloneLoginFlow.LoginResult.Success<U>, StandaloneLoginFlow.LoginResult.Rejected<U>, StandaloneLoginFlow.LoginResult.LockedOut<U>
Outcome of a single
StandaloneLoginFlow.login(T, String) call.-
Nested Class Summary
Nested ClassesModifier 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. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <U> StandaloneLoginFlow.LoginResult<U> lockedOut(com.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOut decision) static <U> StandaloneLoginFlow.LoginResult<U> rejected()static <U> StandaloneLoginFlow.LoginResult<U> success(U subject)
-
Method Details
-
success
-
rejected
-
lockedOut
static <U> StandaloneLoginFlow.LoginResult<U> lockedOut(com.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOut decision)
-