public class AuthenticationResult extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
authenticatedUser |
protected boolean |
isAuthenticated |
Constructor and Description |
---|
AuthenticationResult(String authenticatedUser,
boolean isAuthenticated) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticatedUser() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
void |
setAuthenticatedUser(String authenticatedUser) |
static AuthenticationResult |
successful(String userId) |
static AuthenticationResult |
unsuccessful() |
static AuthenticationResult |
unsuccessful(String userId) |
protected String authenticatedUser
protected boolean isAuthenticated
public AuthenticationResult(String authenticatedUser, boolean isAuthenticated)
public String getAuthenticatedUser()
public void setAuthenticatedUser(String authenticatedUser)
public boolean isAuthenticated()
public void setAuthenticated(boolean isAuthenticated)
public static AuthenticationResult successful(String userId)
public static AuthenticationResult unsuccessful()
public static AuthenticationResult unsuccessful(String userId)
Copyright © 2019. All rights reserved.