RestAPIKeyAuthenticationFilter.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:eMonocot 作者:
@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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号