@Override
public Authentication attemptAuthentication(HttpServletRequest request,
HttpServletResponse response) throws AuthenticationException,
IOException, ServletException {
String apiKeyValue = decodeParameterValue(request, API_KEY_PARAMETER_NAME);
logger.debug("attemptAuthentication " + apiKeyValue);
AbstractAuthenticationToken authRequest = createAuthenticationToken(
apiKeyValue, new RestCredentials());
// Allow subclasses to set the "details" property
setDetails(request, authRequest);
return this.getAuthenticationManager().authenticate(authRequest);
}
RestAPIKeyAuthenticationFilter.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:eMonocot
作者:
评论列表
文章目录