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

构造方法摘要
OAuth2ExpressionUtils()
           
 
方法摘要
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.