public final class FaceletsTagUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
FaceletsTagUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areAllGranted(java.lang.String authorities)
Returns true if the user has all of of the given authorities.
|
static boolean |
areAnyGranted(java.lang.String authorities)
Returns true if the user has any of the given authorities.
|
static boolean |
areNotGranted(java.lang.String authorities)
Returns true if the user does not have any of the given authorities.
|
static boolean |
isAllowed(java.lang.String url,
java.lang.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(java.lang.String authorities) throws java.io.IOException
authorities
- a comma-separated list of user authorities.java.io.IOException
- io exceptionpublic static boolean areAnyGranted(java.lang.String authorities) throws java.io.IOException
authorities
- a comma-separated list of user authorities.java.io.IOException
- io exceptionpublic static boolean areNotGranted(java.lang.String authorities) throws java.io.IOException
authorities
- a comma-separated list of user authorities.java.io.IOException
- io exceptionpublic static boolean isAllowed(java.lang.String url, java.lang.String method) throws java.io.IOException
url
- to be accessed.method
- to be called.java.io.IOException
- io exceptionpublic static boolean isAnonymous() throws java.io.IOException
java.io.IOException
- io exceptionpublic static boolean isAuthenticated() throws java.io.IOException
java.io.IOException
- io exceptionpublic static boolean isFullyAuthenticated() throws java.io.IOException
java.io.IOException
- io exception