public abstract class OAuth2ExpressionUtils extends Object
Constructor and Description |
---|
OAuth2ExpressionUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean clientHasAnyRole(org.springframework.security.core.Authentication authentication, String... roles)
public static boolean isOAuth(org.springframework.security.core.Authentication authentication)
public static boolean isOAuthClientAuth(org.springframework.security.core.Authentication authentication)
public static boolean isOAuthUserAuth(org.springframework.security.core.Authentication authentication)
public static boolean hasAnyScope(org.springframework.security.core.Authentication authentication, String[] scopes)
public static boolean hasAnyScopeMatching(org.springframework.security.core.Authentication authentication, String[] scopesRegex)
Copyright © 2019. All rights reserved.