@Override public AuthenticationStatus secureResponse(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) throws AuthenticationException { return getWrapped().secureResponse(request, response, httpMessageContext); }
@Override public AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject) throws AuthException { HttpMessageContext msgContext = new HttpMessageContextImpl(handler, messageInfo, null); try { AuthenticationStatus status = CDI.current() .select(HttpAuthenticationMechanism.class).get() .secureResponse( msgContext.getRequest(), msgContext.getResponse(), msgContext); AuthStatus authStatus = fromAuthenticationStatus(status); if (authStatus == AuthStatus.SUCCESS) { return AuthStatus.SEND_SUCCESS; } return authStatus; } catch (AuthenticationException e) { throw (AuthException) new AuthException("Secure response failure in HttpAuthenticationMechanism").initCause(e); } finally { if (cdiPerRequestInitializer != null) { cdiPerRequestInitializer.destroy(msgContext.getRequest()); } } }
@Override public AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject) throws AuthException { HttpMessageContext msgContext = new HttpMessageContextImpl(handler, messageInfo, null); try { AuthenticationStatus status = CDI.current() .select(HttpAuthenticationMechanism.class).get() .secureResponse( msgContext.getRequest(), msgContext.getResponse(), msgContext); AuthStatus authStatus = fromAuthenticationStatus(status); if (authStatus == AuthStatus.SUCCESS) { return AuthStatus.SEND_SUCCESS; } return authStatus; } catch (AuthenticationException e) { throw (AuthException) new AuthException("Secure response failure in HttpAuthenticationMechanism").initCause(e); } finally { if (cdiPerRequestInitializer != null) { cdiPerRequestInitializer.destroy(msgContext.getRequest()); } } }