org.springframework.security.oauth2.provider.expression
Class OAuth2ExpressionUtils
java.lang.Object
org.springframework.security.oauth2.provider.expression.OAuth2ExpressionUtils
public abstract class OAuth2ExpressionUtils
- extends Object
- Author:
- Dave Syer, Radek Ostrowski
|
Method Summary |
static boolean |
clientHasAnyRole(org.springframework.security.core.Authentication authentication,
String... roles)
|
static boolean |
hasAnyScope(org.springframework.security.core.Authentication authentication,
String[] scopes)
|
static boolean |
hasAnyScopeMatching(org.springframework.security.core.Authentication authentication,
String[] scopesRegex)
|
static boolean |
isOAuth(org.springframework.security.core.Authentication authentication)
|
static boolean |
isOAuthClientAuth(org.springframework.security.core.Authentication authentication)
|
static boolean |
isOAuthUserAuth(org.springframework.security.core.Authentication authentication)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2ExpressionUtils
public OAuth2ExpressionUtils()
clientHasAnyRole
public static boolean clientHasAnyRole(org.springframework.security.core.Authentication authentication,
String... roles)
isOAuth
public static boolean isOAuth(org.springframework.security.core.Authentication authentication)
isOAuthClientAuth
public static boolean isOAuthClientAuth(org.springframework.security.core.Authentication authentication)
isOAuthUserAuth
public static boolean isOAuthUserAuth(org.springframework.security.core.Authentication authentication)
hasAnyScope
public static boolean hasAnyScope(org.springframework.security.core.Authentication authentication,
String[] scopes)
hasAnyScopeMatching
public static boolean hasAnyScopeMatching(org.springframework.security.core.Authentication authentication,
String[] scopesRegex)
Copyright © 2013. All rights reserved.