public class IsAnonymousAuthorizer<U extends CommonProfile> extends AbstractCheckAuthenticationAuthorizer<U>
Constructor and Description |
---|
IsAnonymousAuthorizer() |
IsAnonymousAuthorizer(String redirectionUrl) |
Modifier and Type | Method and Description |
---|---|
protected String |
getErrorMessage()
Return the error message.
|
boolean |
isAuthorized(WebContext context,
List<U> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
boolean |
isProfileAuthorized(WebContext context,
U profile)
Whether a specific profile is authorized.
|
getRedirectionUrl, handleError, setRedirectionUrl
isAllAuthorized, isAnyAuthorized
public IsAnonymousAuthorizer()
public IsAnonymousAuthorizer(String redirectionUrl)
public boolean isAuthorized(WebContext context, List<U> profiles) throws HttpAction
Authorizer
context
- the web contextprofiles
- the user profilesHttpAction
- whether an additional HTTP action is requiredpublic boolean isProfileAuthorized(WebContext context, U profile) throws HttpAction
ProfileAuthorizer
isProfileAuthorized
in class ProfileAuthorizer<U extends CommonProfile>
context
- the web contextprofile
- the user profileHttpAction
- whether an additional HTTP action is requiredprotected String getErrorMessage()
AbstractCheckAuthenticationAuthorizer
getErrorMessage
in class AbstractCheckAuthenticationAuthorizer<U extends CommonProfile>
Copyright © 2017. All rights reserved.