code: public void setAuthenticationToken(Authentication authentication) {
          if( logger.isDebugEnabled() ) {
              logger.debug( "New authentication token: " + authentication );
          }
  
          final HttpInvokerRequestExecutor hire = getHttpInvokerRequestExecutor();
          if( hire instanceof BasicAuthHttpInvokerRequestExecutor ) {
              if( logger.isDebugEnabled() ) {
                  logger.debug( "Pass it along to executor" );
              }
              ((BasicAuthHttpInvokerRequestExecutor) hire).setAuthenticationToken( authentication );
          }
      }
docs: Handle a change in the current authentication token. Pass it along to the executor
  if it's of the proper type.
  @see BasicAuthHttpInvokerRequestExecutor
  @see AuthenticationAware#setAuthenticationToken(org.springframework.security.Authentication)