request.setNote(MESSAGE_INFO_KEY, messageInfo);
String authContextId = serverAuthConfig.getAuthContextID(messageInfo);
ServerAuthContext authContext = serverAuthConfig.getAuthContext(authContextId, serviceSubject, authProperties);
Subject clientSubject = new Subject();
AuthStatus authStatus = authContext.validateRequest(messageInfo, clientSubject, serviceSubject);
if (authStatus == AuthStatus.SEND_CONTINUE)
return new AuthResult(TomcatAuthStatus.SEND_CONTINUE, null, false);
if (authStatus == AuthStatus.SEND_FAILURE)
return new AuthResult(TomcatAuthStatus.SEND_FAILURE, null, false);