code: @Override
      public CallbackHandler getCallbackHandler(String userName, String realmName, @Sensitive String password, HttpServletRequest req, HttpServletResponse resp, Map appContext) {
          AuthenticationData authenticationData = createBasicAuthenticationData(userName, password);
          authenticationData.set(AuthenticationData.REALM, realmName);
          authenticationData.set(AuthenticationData.HTTP_SERVLET_REQUEST, req);
          authenticationData.set(AuthenticationData.HTTP_SERVLET_RESPONSE, resp);
          authenticationData.set(AuthenticationData.APPLICATION_CONTEXT, appContext);
          return new AuthenticationDataCallbackHandler(authenticationData);
      }
docs: {@inheritDoc}