AuthenticationCredentialsNotFoundExceptionMapper.java 文件源码

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

项目:nifi-registry 作者:
@Override
public Response toResponse(AuthenticationCredentialsNotFoundException exception) {
    // log the error
    logger.info(String.format("No valid credentials were found in the request: %s. Returning %s response.", exception, Response.Status.FORBIDDEN));

    if (logger.isDebugEnabled()) {
        logger.debug(StringUtils.EMPTY, exception);
    }

    return Response.status(Response.Status.FORBIDDEN).entity("Access is denied.").type("text/plain").build();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号