Class AuthenticationResult
java.lang.Object
net.datenwerke.security.service.authenticator.AuthenticationResult
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationResult(boolean allowed, User user) AuthenticationResult(boolean valid, User user, boolean authoritative) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic AuthenticationResultcannotAuthenticate(boolean authoritative) If authoritative is true, creates an AuthenticationResult denying access.static AuthenticationResultcannotAuthenticate(boolean authoritative, User user) If authoritative is true, creates an AuthenticationResult denying access to the respective user.static AuthenticationResultDenies accessstatic AuthenticationResultdenyAccess(User user) Denies accessstatic booleanDOESNT_CARE(AuthenticationResult authenticateResult) static AuthenticationResultCreates an AuthenticationResult specifying don't care, somebody else should decidegetInfos()getUser()static AuthenticationResultgrantAccess(User user) Grants access to the given userbooleanvoidsetAllowed(boolean allowed) voidsetInfos(List<AuthenticateResultInfo> infos)
-
Constructor Details
-
AuthenticationResult
Deprecated. -
AuthenticationResult
-
-
Method Details
-
DOESNT_CARE
- Parameters:
authenticateResult-- Returns:
-
getUser
-
isAllowed
public boolean isAllowed() -
setInfos
-
getInfos
-
addInfo
-
setAllowed
public void setAllowed(boolean allowed) -
denyAccess
Denies access- Returns:
- an AuthenticationResult denying access
-
denyAccess
Denies access- Parameters:
user- the user- Returns:
- an AuthenticationResult denying access
-
grantAccess
Grants access to the given user- Parameters:
user- the user- Returns:
- an AuthenticationResult granting access to the given user
-
dontCareAccess
Creates an AuthenticationResult specifying don't care, somebody else should decide- Returns:
- an AuthenticationResult specifying don't care, somebody else should decide
-
cannotAuthenticate
If authoritative is true, creates an AuthenticationResult denying access. Else, creates an AuthenticationResult specifying don't care, somebody else should decide- Parameters:
authoritative-- Returns:
-
cannotAuthenticate
If authoritative is true, creates an AuthenticationResult denying access to the respective user. Else, creates an AuthenticationResult specifying don't care, somebody else should decide- Parameters:
authoritative-user- the user- Returns:
-