public class IsAuthenticatedAuthorizer<U extends CommonProfile> extends AbstractCheckAuthenticationAuthorizer<U>
AnonymousClient
.Constructor and Description |
---|
IsAuthenticatedAuthorizer() |
IsAuthenticatedAuthorizer(String redirectionUrl) |
Modifier and Type | Method and Description |
---|---|
static <U extends CommonProfile> |
isAuthenticated() |
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 IsAuthenticatedAuthorizer()
public IsAuthenticatedAuthorizer(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> IsAuthenticatedAuthorizer<U> isAuthenticated()
Copyright © 2019. All rights reserved.