@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();
}
AuthenticationCredentialsNotFoundExceptionMapper.java 文件源码
java
阅读 53
收藏 0
点赞 0
评论 0
项目:nifi-registry
作者:
评论列表
文章目录