public class AuthenticationResult
extends java.lang.Object
Constructor and Description |
---|
AuthenticationResult(boolean allowed,
User user) |
AuthenticationResult(boolean valid,
User user,
boolean authoritative)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addInfo(AuthenticateResultInfo info) |
static AuthenticationResult |
cannotAuthenticate(boolean authoritative)
If authoritative is true, creates an AuthenticationResult denying access.
|
static AuthenticationResult |
cannotAuthenticate(boolean authoritative,
User user)
If authoritative is true, creates an AuthenticationResult denying access to
the respective user.
|
static AuthenticationResult |
denyAccess()
Denies access
|
static AuthenticationResult |
denyAccess(User user)
Denies access
|
static AuthenticationResult |
dontCareAccess()
Creates an AuthenticationResult specifying don't care, somebody else should
decide
|
java.util.List<AuthenticateResultInfo> |
getInfos() |
User |
getUser() |
static AuthenticationResult |
grantAccess(User user)
Grants access to the given user
|
boolean |
isAllowed() |
void |
setAllowed(boolean allowed) |
void |
setInfos(java.util.List<AuthenticateResultInfo> infos) |
@Deprecated public AuthenticationResult(boolean valid, User user, boolean authoritative)
public AuthenticationResult(boolean allowed, User user)
public User getUser()
public boolean isAllowed()
public void setInfos(java.util.List<AuthenticateResultInfo> infos)
public java.util.List<AuthenticateResultInfo> getInfos()
public void addInfo(AuthenticateResultInfo info)
public void setAllowed(boolean allowed)
public static AuthenticationResult denyAccess()
public static AuthenticationResult denyAccess(User user)
user
- the userpublic static AuthenticationResult grantAccess(User user)
user
- the userpublic static AuthenticationResult dontCareAccess()
public static AuthenticationResult cannotAuthenticate(boolean authoritative)
authoritative
- public static AuthenticationResult cannotAuthenticate(boolean authoritative, User user)
authoritative
- user
- the user