public class IsAnonymousAuthorizer<U extends CommonProfile> extends AbstractCheckAuthenticationAuthorizer<U>
Constructor and Description |
---|
IsAnonymousAuthorizer() |
IsAnonymousAuthorizer(String redirectionUrl) |
Modifier and Type | Method and Description |
---|---|
static <U extends CommonProfile> |
isAnonymous() |
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)
Authorizer
context
- the web contextprofiles
- the user profilespublic boolean isProfileAuthorized(WebContext context, U profile)
ProfileAuthorizer
isProfileAuthorized
in class ProfileAuthorizer<U extends CommonProfile>
context
- the web contextprofile
- the user profilepublic static <U extends CommonProfile> IsAnonymousAuthorizer<U> isAnonymous()
Copyright © 2019. All rights reserved.