org.springframework.security.oauth2.provider.expression
类 OAuth2ExpressionUtils
java.lang.Object
org.springframework.security.oauth2.provider.expression.OAuth2ExpressionUtils
public abstract class OAuth2ExpressionUtils
- extends Object
- 作者:
- Dave Syer
|
方法摘要 |
static boolean |
clientHasAnyRole(org.springframework.security.core.Authentication authentication,
String... roles)
|
static boolean |
hasAnyScope(org.springframework.security.core.Authentication authentication,
String[] scopes)
|
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)
|
| 从类 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)
Copyright © 2013. All rights reserved.