public final class FaceletsTagUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
FaceletsTagUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areAllGranted(String authorities)
Returns true if the user has all of of the given authorities.
|
static boolean |
areAnyGranted(String authorities)
Returns true if the user has any of the given authorities.
|
static boolean |
areNotGranted(String authorities)
Returns true if the user does not have any of the given authorities.
|
static boolean |
isAllowed(String url,
String method)
Returns true if the user is allowed to access the given URL and HTTP
method combination.
|
static boolean |
isAnonymous()
Returns true if user is anonymous.
|
static boolean |
isAuthenticated()
Returns true if the user is not anonymous.
|
static boolean |
isFullyAuthenticated()
Returns true if the is not an anonymous or a remember-me user.
|
public static boolean areAllGranted(String authorities) throws IOException
authorities
- a comma-separated list of user authorities.IOException
- io exceptionpublic static boolean areAnyGranted(String authorities) throws IOException
authorities
- a comma-separated list of user authorities.IOException
- io exceptionpublic static boolean areNotGranted(String authorities) throws IOException
authorities
- a comma-separated list of user authorities.IOException
- io exceptionpublic static boolean isAllowed(String url, String method) throws IOException
url
- to be accessed.method
- to be called.IOException
- io exceptionpublic static boolean isAnonymous() throws IOException
IOException
- io exceptionpublic static boolean isAuthenticated() throws IOException
IOException
- io exceptionpublic static boolean isFullyAuthenticated() throws IOException
IOException
- io exceptionCopyright © 2016–2017 JoinFaces. All rights reserved.