| | |
| | | import com.qianwen.core.tool.utils.StringUtil; |
| | | import com.qianwen.core.tool.utils.WebUtil; |
| | | |
| | | /* loaded from: blade-core-secure-9.3.0.0-SNAPSHOT.jar:org/springblade/core/secure/utils/SecureUtil.class */ |
| | | public class SecureUtil extends AuthUtil { |
| | | private static final String CLIENT_ID = "client_id"; |
| | | private static IClientDetailsService clientDetailsService; |
| | | private static JwtProperties jwtProperties; |
| | | static final /* synthetic */ boolean $assertionsDisabled; |
| | | |
| | | static { |
| | | $assertionsDisabled = !SecureUtil.class.desiredAssertionStatus(); |
| | | } |
| | | public class SecureUtil extends AuthUtil { |
| | | private static final String CLIENT_ID = "client_id"; |
| | | |
| | | private static IClientDetailsService clientDetailsService; |
| | | |
| | | private static JwtProperties jwtProperties; |
| | | |
| | | private static IClientDetailsService getClientDetailsService() { |
| | | if (clientDetailsService == null) { |
| | | clientDetailsService = (IClientDetailsService) SpringUtil.getBean(IClientDetailsService.class); |
| | | } |
| | | return clientDetailsService; |
| | | if (clientDetailsService == null) { |
| | | clientDetailsService = (IClientDetailsService)SpringUtil.getBean(IClientDetailsService.class); |
| | | } |
| | | return clientDetailsService; |
| | | } |
| | | |
| | | private static JwtProperties getJwtProperties() { |
| | |
| | | } |
| | | |
| | | public static String getClientIdFromHeader() { |
| | | String[] tokens = extractAndDecodeHeader(); |
| | | if ($assertionsDisabled || tokens.length == 2) { |
| | | return tokens[0]; |
| | | } |
| | | throw new AssertionError(); |
| | | String[] tokens = extractAndDecodeHeader(); |
| | | assert tokens.length == 2; |
| | | return tokens[0]; |
| | | } |
| | | |
| | | private static IClientDetails clientDetails(String clientId) { |