类 OAuth2EndpointUtils
java.lang.Object
cn.herodotus.engine.oauth2.authentication.utils.OAuth2EndpointUtils
Description: OAuth 2.0 Endpoint 工具方法类
新版 spring-security-oauth2-authorization-server 很多代码都是“包”级可访问的,外部无法使用。为了方便扩展将其提取出来,便于使用。
代码内容与原包代码基本一致。
- 作者:
- : gengwei.zheng
- Date:
- : 2022/2/23 11:24
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static StringcheckOptionalParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName) static StringcheckOptionalParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName, String errorCode) static StringcheckOptionalParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName, String errorCode, String errorUri) static StringcheckParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName, boolean isRequired, String errorCode, String errorUri) static StringcheckRequiredParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName) static StringcheckRequiredParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName, String errorCode) static StringcheckRequiredParameter(org.springframework.util.MultiValueMap<String, String> parameters, String parameterName, String errorCode, String errorUri) getParameters(jakarta.servlet.http.HttpServletRequest request) getParameters(jakarta.servlet.http.HttpServletRequest request, String... exclusions) getParametersIfMatchesAuthorizationCodeGrantRequest(jakarta.servlet.http.HttpServletRequest request, String... exclusions) static booleanmatchesAuthorizationCodeGrantRequest(jakarta.servlet.http.HttpServletRequest request) static booleanmatchesClientCredentialsGrantRequest(jakarta.servlet.http.HttpServletRequest request) static booleanmatchesPkceTokenRequest(jakarta.servlet.http.HttpServletRequest request) static voidthrowError(String errorCode, String parameterName) static voidthrowError(String errorCode, String parameterName, String errorUri)
-
字段详细资料
-
ACCESS_TOKEN_REQUEST_ERROR_URI
- 另请参阅:
-
-
方法详细资料
-
getParameters
-
getParametersIfMatchesAuthorizationCodeGrantRequest
-
getParameters
-
matchesClientCredentialsGrantRequest
public static boolean matchesClientCredentialsGrantRequest(jakarta.servlet.http.HttpServletRequest request) -
matchesAuthorizationCodeGrantRequest
public static boolean matchesAuthorizationCodeGrantRequest(jakarta.servlet.http.HttpServletRequest request) -
matchesPkceTokenRequest
public static boolean matchesPkceTokenRequest(jakarta.servlet.http.HttpServletRequest request) -
throwError
-
throwError
-
checkParameter
-
checkRequiredParameter
-
checkRequiredParameter
-
checkRequiredParameter
-
checkOptionalParameter
-
checkOptionalParameter
-
checkOptionalParameter
-